npm audit reports high-severity advisories affecting Multer (DoS after request teardown) and undici (EventSource memory DoS, SRI bypass, content-encoding DoS).
Acceptance Criteria
Update the vulnerable transitive dependencies to patched versions without forcing a breaking NestJS major/minor downgrade or upgrade.
Keep package.json and package-lock.json consistent.
npm audit no longer reports these advisories; document any remaining vulnerabilities.
Run the repository dependency/security and relevant validation checks.
Scope
Dependency overrides and lockfile in backend only.
## Context
`npm audit` reports high-severity advisories affecting Multer (DoS after request teardown) and undici (EventSource memory DoS, SRI bypass, content-encoding DoS).
## Acceptance Criteria
- Update the vulnerable transitive dependencies to patched versions without forcing a breaking NestJS major/minor downgrade or upgrade.
- Keep package.json and package-lock.json consistent.
- `npm audit` no longer reports these advisories; document any remaining vulnerabilities.
- Run the repository dependency/security and relevant validation checks.
## Scope
Dependency overrides and lockfile in backend only.
Implemented in branch chore/125-multer-undici-security.
Multer 2.5.0 and undici 7.30.1 overrides resolve the reported high-severity advisories without a NestJS major upgrade or undici 8.
Updated transitive body-parser, fast-uri, and ip-address overrides to clear the existing audit findings as well.
npm audit: 0 vulnerabilities.
Checks: prisma generate, npm run lint:check, npm run typecheck:app, npm run typecheck:test, npm test -- --runInBand, npm run test:lint all pass.
Scope: package.json and package-lock.json only.
Implemented in branch `chore/125-multer-undici-security`.
- Multer 2.5.0 and undici 7.30.1 overrides resolve the reported high-severity advisories without a NestJS major upgrade or undici 8.
- Updated transitive body-parser, fast-uri, and ip-address overrides to clear the existing audit findings as well.
- `npm audit`: 0 vulnerabilities.
Checks: `prisma generate`, `npm run lint:check`, `npm run typecheck:app`, `npm run typecheck:test`, `npm test -- --runInBand`, `npm run test:lint` all pass.
Scope: `package.json` and `package-lock.json` only.
CI unblock for feature PR #121 was handled by preserving its change as a linear commit on current develop in PR #126, since original #121 had a merge commit that commitlint rejected. Old PR #121 is closed as superseded; waiting on #126 required checks before merging.
CI unblock for feature PR #121 was handled by preserving its change as a linear commit on current develop in PR #126, since original #121 had a merge commit that commitlint rejected. Old PR #121 is closed as superseded; waiting on #126 required checks before merging.
Dependency-audit fixes and the structured-error-logging feature were merged via linearized PR #126 after resolving commitlint and e2e CI failures. Required commits/security/verify checks all passed on the final PR revision.
Dependency-audit fixes and the structured-error-logging feature were merged via linearized PR #126 after resolving commitlint and e2e CI failures. Required commits/security/verify checks all passed on the final PR revision.
Verified on develop @ 2325b63: multer@2.5.0 and undici@7.30.1 resolved via overrides; npm audit --omit=dev → 0 vulnerabilities. Remaining: 6 low (deepmerge GHSA-gcqx-w48m-w2h4 via jest-config, dev-only; no non-breaking fix upstream). AC met — closing.
Verified on `develop` @ 2325b63: multer@2.5.0 and undici@7.30.1 resolved via overrides; `npm audit --omit=dev` → 0 vulnerabilities. Remaining: 6 low (deepmerge GHSA-gcqx-w48m-w2h4 via jest-config, dev-only; no non-breaking fix upstream). AC met — closing.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Context
npm auditreports high-severity advisories affecting Multer (DoS after request teardown) and undici (EventSource memory DoS, SRI bypass, content-encoding DoS).Acceptance Criteria
npm auditno longer reports these advisories; document any remaining vulnerabilities.Scope
Dependency overrides and lockfile in backend only.
Implemented in branch
chore/125-multer-undici-security.npm audit: 0 vulnerabilities.Checks:
prisma generate,npm run lint:check,npm run typecheck:app,npm run typecheck:test,npm test -- --runInBand,npm run test:lintall pass.Scope:
package.jsonandpackage-lock.jsononly.CI unblock for feature PR #121 was handled by preserving its change as a linear commit on current develop in PR #126, since original #121 had a merge commit that commitlint rejected. Old PR #121 is closed as superseded; waiting on #126 required checks before merging.
Dependency-audit fixes and the structured-error-logging feature were merged via linearized PR #126 after resolving commitlint and e2e CI failures. Required commits/security/verify checks all passed on the final PR revision.
Verified on
develop@2325b63: multer@2.5.0 and undici@7.30.1 resolved via overrides;npm audit --omit=dev→ 0 vulnerabilities. Remaining: 6 low (deepmerge GHSA-gcqx-w48m-w2h4 via jest-config, dev-only; no non-breaking fix upstream). AC met — closing.