Reduce npm deprecations and remediate npm audit vulnerabilities #53

Closed
opened 2026-07-29 02:37:08 -07:00 by westfarn · 0 comments
Owner

Problem

Running npm ci in chat_web_app/llm-fe reports many deprecated packages and 103 vulnerabilities (8 low, 20 moderate, 71 high, 4 critical).

This raises security risk and makes dependency maintenance harder.

Evidence

  • Multiple deprecated transitive dependencies (inflight, glob, rimraf, tar, svgo, eslint, several conventional-changelog-*, etc.)
  • npm audit summary:
    • 103 vulnerabilities total
    • 71 high, 4 critical

Goal

Bring dependency tree to supported package versions and reduce vulnerabilities to acceptable baseline (ideally zero critical/high).

Proposed plan

  1. Run baseline reports:
    • npm ls --depth=3
    • npm audit --json > audit-before.json
  2. Safe automatic updates:
    • npm audit fix
  3. Identify top vulnerable chains:
    • Focus packages pulling old glob/rimraf/tar, old workbox, old Babel proposal plugins, old eslint, old svgo, old uuid
  4. Upgrade direct deps and tooling:
    • Prefer maintained replacements (e.g. @rollup/plugin-terser, current eslint, maintained changelog tooling)
  5. If needed, controlled breaking updates:
    • npm audit fix --force in dedicated branch, verify app/test/build
  6. Verify and document:
    • npm ci
    • npm audit
    • npm run build
    • core smoke tests

Acceptance criteria

  • No critical vulnerabilities
  • High vulnerabilities reduced to agreed threshold (target: zero)
  • npm ci completes without unsupported key tooling in direct deps
  • Build and smoke tests pass

Notes

Some warnings are transitive and may require upgrading or replacing parent dependencies, not just direct package bumps.

## Problem Running `npm ci` in `chat_web_app/llm-fe` reports many deprecated packages and `103 vulnerabilities` (`8 low`, `20 moderate`, `71 high`, `4 critical`). This raises security risk and makes dependency maintenance harder. ## Evidence - Multiple deprecated transitive dependencies (`inflight`, `glob`, `rimraf`, `tar`, `svgo`, `eslint`, several `conventional-changelog-*`, etc.) - `npm audit` summary: - 103 vulnerabilities total - 71 high, 4 critical ## Goal Bring dependency tree to supported package versions and reduce vulnerabilities to acceptable baseline (ideally zero critical/high). ## Proposed plan 1. Run baseline reports: - `npm ls --depth=3` - `npm audit --json > audit-before.json` 2. Safe automatic updates: - `npm audit fix` 3. Identify top vulnerable chains: - Focus packages pulling old `glob/rimraf/tar`, old `workbox`, old Babel proposal plugins, old `eslint`, old `svgo`, old `uuid` 4. Upgrade direct deps and tooling: - Prefer maintained replacements (e.g. `@rollup/plugin-terser`, current `eslint`, maintained changelog tooling) 5. If needed, controlled breaking updates: - `npm audit fix --force` in dedicated branch, verify app/test/build 6. Verify and document: - `npm ci` - `npm audit` - `npm run build` - core smoke tests ## Acceptance criteria - No critical vulnerabilities - High vulnerabilities reduced to agreed threshold (target: zero) - `npm ci` completes without unsupported key tooling in direct deps - Build and smoke tests pass ## Notes Some warnings are transitive and may require upgrading or replacing parent dependencies, not just direct package bumps.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/chat_web_app#53