Fix remaining Dependabot security vulnerabilities#506
Merged
andrejak merged 1 commit intoMay 15, 2026
Conversation
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>
6c4a45b to
e275413
Compare
igorp1
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
yarnresolutions. No new entries were added to the rootpackage.jsonresolutionsblock.Root
yarn.locktarpuppeteer22 -> 24 (usestar-fs), and refreshnode-gyp-> 12serialize-javascriptterser-webpack-pluginto 5.6.0 (dropped the dep)@tootallnate/oncejest29 -> 30 (bringsjsdom26 +http-proxy-agent7)ippac-resolver@9 (netmask) andsocks@2.8 (ip-address)Examples
postcssresolutions: { postcss: ^8.5.10 }inexamples/nextandexamples/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-typesyarn lintyarn prettier-checkyarn test- 31 suites / 96 tests passyarn build-storybookMade with Cursor