feat: [ENG-2657] reduce npm audit vulnerabilities via lockfile update#614
Conversation
|
Claude finished @bao-byterover's task in 3m 16s —— View job PR Review —
|
| "node_modules/@trickfilm400/rollup-plugin-off-main-thread": { | ||
| "version": "3.0.0-pre1", | ||
| "resolved": "https://registry.npmjs.org/@trickfilm400/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-3.0.0-pre1.tgz", | ||
| "integrity": "sha512-/67zpWDBLV+oYAEL682s1ktXL0HgqX76f6gaVGkGnVZlBbm1zd0v4Bz8MFF2GGhoX9rvfq3KSQHubFHwa6w6/Q==", | ||
| "dev": true, | ||
| "license": "Apache-2.0", | ||
| "dependencies": { | ||
| "ejs": "^3.1.10", | ||
| "json5": "^2.2.3", | ||
| "magic-string": "^0.30.21", | ||
| "string.prototype.matchall": "^4.0.12" | ||
| }, | ||
| "engines": { | ||
| "node": ">=12" | ||
| } | ||
| }, |
There was a problem hiding this comment.
suggestion (non-blocking): Supply-chain — pre-release of a third-party fork.
This entry replaces @surma/rollup-plugin-off-main-thread with @trickfilm400/rollup-plugin-off-main-thread@3.0.0-pre1. Two flags:
- Fork:
@trickfilm400/*is a community fork — not the original maintainer (@surma). The swap was made upstream byworkbox-build@7.4.1, so we're inheriting it; but it's worth being aware of who we now transitively trust for build tooling. -pre1pre-release: pinning a pre-release tag is fragile. Pre-releases can be unpublished or replaced more freely than stable versions. Ifworkbox-buildis the only thing pulling this in (it is), low practical risk — but worth a one-time human review of the fork's provenance.
No action required if you've already vetted this; flagging because the diff is otherwise mechanical and this line is the only meaningful trust delegation.
| } | ||
| } | ||
| }, | ||
| "node_modules/@rollup/plugin-terser/node_modules/serialize-javascript": { | ||
| "version": "7.0.5", | ||
| "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-7.0.5.tgz", | ||
| "integrity": "sha512-F4LcB0UqUl1zErq+1nYEEzSHJnIwb3AF2XWB94b+afhrekOUijwooAYqFyRbjYkm2PAKBabx6oYv/xDxNi8IBw==", | ||
| "dev": true, | ||
| "license": "BSD-3-Clause", | ||
| "engines": { |
There was a problem hiding this comment.
praise: Resolves the serialize-javascript ReDoS family (CVE-2024-11831 / <6.0.2).
Bumping the nested serialize-javascript from ^6.0.1 → 7.0.5 inside @rollup/plugin-terser@1.0.0 removes the older vulnerable copy. The new @rollup/plugin-terser@1.0.0 requires Node ≥20, which matches package.json#engines (>=20.0.0), so no engine drift. Good.
| "engines": { | ||
| "node": ">=20" | ||
| }, | ||
| "funding": { |
There was a problem hiding this comment.
note: Engine swap — eta replaces ejs inside workbox-build.
Both ejs and eta had ReDoS / template-injection advisories historically, but eta@4.x is the actively maintained successor and resolves the older ejs chain. Since this is a dev-only tool used by Vite-PWA's service-worker generation, runtime exposure is nil. Note that eta@4.6.0 requires Node ≥20 — matches our engines field, so no compatibility issue.
No description provided.