Skip to content

Fix remaining Dependabot security vulnerabilities#506

Merged
andrejak merged 1 commit into
mainfrom
andreja/tsp-1496-address-remaining-vulnerabilities
May 15, 2026
Merged

Fix remaining Dependabot security vulnerabilities#506
andrejak merged 1 commit into
mainfrom
andreja/tsp-1496-address-remaining-vulnerabilities

Conversation

@andrejak

Copy link
Copy Markdown
Contributor

Summary

Resolves the remaining 12 open Dependabot alerts on this repo by upgrading the dev dependencies that pulled in vulnerable transitive packages, rather than papering over them with yarn resolutions. No new entries were added to the root package.json resolutions block.

Root yarn.lock

Alert Package Before After How
#124 / #126 / #134 / #148 / #163 / #165 tar 6.2.1 7.5.15 Bump puppeteer 22 -> 24 (uses tar-fs), and refresh node-gyp -> 12
#162 / #191 serialize-javascript 6.0.2 removed Refresh terser-webpack-plugin to 5.6.0 (dropped the dep)
#164 @tootallnate/once 2.0.0 removed Bump jest 29 -> 30 (brings jsdom 26 + http-proxy-agent 7)
#18 ip 1.1.9, 2.0.1 removed Puppeteer 24 chain uses pac-resolver@9 (netmask) and socks@2.8 (ip-address)

Examples

Alert Package Before After How
#217 / #218 postcss 8.4.31 8.5.14 resolutions: { postcss: ^8.5.10 } in examples/next and examples/card-form-examples (Next 16 pins postcss exact)

API changes required by the upgrades

  • e2e/index.e2e.ts: PuppeteerLaunchOptions -> LaunchOptions, ignoreHTTPSErrors -> acceptInsecureCerts (puppeteer 23+/24 renames).
  • src/tests/**: replaced two Jest 30-removed aliases (toBeCalledTimes -> toHaveBeenCalledTimes, toThrowError -> toThrow).

Test plan

  • yarn install --immutable (root + both examples)
  • yarn check-types
  • yarn lint
  • yarn prettier-check
  • yarn test - 31 suites / 96 tests pass
  • yarn build-storybook
  • Confirm Dependabot alerts close after merge

Made with Cursor

@andrejak andrejak requested a review from a team as a code owner May 15, 2026 14:02
Resolves the remaining open alerts on duffel-components by upgrading
the dev dependencies that pulled in vulnerable transitive packages,
rather than papering over them with yarn resolutions.

- Bump `puppeteer` 22.15.0 -> 24.43.1: drops `tar`, `socks`<=2.7,
  `pac-resolver`@7.0.0, and the `ip` package (puppeteer 24 uses
  `tar-fs`, `socks` 2.8.x with `ip-address`, and `pac-resolver` with
  `netmask` only). Updates the e2e launch options to the new API
  (`LaunchOptions`, `acceptInsecureCerts`).
- Bump `jest`, `jest-environment-jsdom`, `babel-jest`, and
  `@types/jest` to v30: brings in `jsdom` 26 which uses
  `http-proxy-agent` v7 and removes the vulnerable
  `@tootallnate/once` transitive. Replaces a couple of test matchers
  that were removed in Jest 30 (`toBeCalledTimes` ->
  `toHaveBeenCalledTimes`, `toThrowError` -> `toThrow`).
- Refresh `terser-webpack-plugin` to 5.6.0 (within the existing
  `^5.3.1` range) which drops the vulnerable `serialize-javascript`
  dependency.
- Pin `postcss` to `^8.5.10` in the `examples/next` and
  `examples/card-form-examples` lockfiles to fix the CSS Stringify
  XSS advisory (`next` 16.2.6 pins postcss to 8.4.31).

No new `resolutions` entries were needed in the root package.json.

Co-authored-by: Cursor <cursoragent@cursor.com>
@andrejak andrejak force-pushed the andreja/tsp-1496-address-remaining-vulnerabilities branch from 6c4a45b to e275413 Compare May 15, 2026 14:22
@andrejak andrejak merged commit 9a3447b into main May 15, 2026
3 checks passed
@andrejak andrejak deleted the andreja/tsp-1496-address-remaining-vulnerabilities branch May 15, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants