Bring dependency tree to supported package versions and reduce vulnerabilities to acceptable baseline (ideally zero critical/high).
Proposed plan
Run baseline reports:
npm ls --depth=3
npm audit --json > audit-before.json
Safe automatic updates:
npm audit fix
Identify top vulnerable chains:
Focus packages pulling old glob/rimraf/tar, old workbox, old Babel proposal plugins, old eslint, old svgo, old uuid
Upgrade direct deps and tooling:
Prefer maintained replacements (e.g. @rollup/plugin-terser, current eslint, maintained changelog tooling)
If needed, controlled breaking updates:
npm audit fix --force in dedicated branch, verify app/test/build
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.
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.
Problem
Running
npm ciinchat_web_app/llm-fereports many deprecated packages and103 vulnerabilities(8 low,20 moderate,71 high,4 critical).This raises security risk and makes dependency maintenance harder.
Evidence
inflight,glob,rimraf,tar,svgo,eslint, severalconventional-changelog-*, etc.)npm auditsummary:Goal
Bring dependency tree to supported package versions and reduce vulnerabilities to acceptable baseline (ideally zero critical/high).
Proposed plan
npm ls --depth=3npm audit --json > audit-before.jsonnpm audit fixglob/rimraf/tar, oldworkbox, old Babel proposal plugins, oldeslint, oldsvgo, olduuid@rollup/plugin-terser, currenteslint, maintained changelog tooling)npm audit fix --forcein dedicated branch, verify app/test/buildnpm cinpm auditnpm run buildAcceptance criteria
npm cicompletes without unsupported key tooling in direct depsNotes
Some warnings are transitive and may require upgrading or replacing parent dependencies, not just direct package bumps.