techdocs icon indicating copy to clipboard operation
techdocs copied to clipboard

Outdated docs site dependencies create security and maintenance risk

Open Shashidar123 opened this issue 8 months ago β€’ 1 comments

The technical docs site is running on an outdated frontend/tooling stack in website/package.json, which increases security exposure and makes future maintenance harder.

Current state The site currently depends on:

docusaurus@^1.14.7 axios@^0.21.2 qs@^6.9.6 During a local build with npm run build, the project also emits warnings that indicate stale tooling:

Highlight.js v9 has reached EOL caniuse-lite is outdated Why this matters This is the highest-value issue to address first because it affects the foundation of the docs site:

Older dependencies may contain known vulnerabilities EOL tooling increases the chance of future build breakage It makes routine maintenance and dependency updates harder Small UI fixes are lower priority if the underlying stack is fragile Expected outcome We should modernize the docs site dependency stack, starting with the most exposed packages and then addressing the Docusaurus version path.

Suggested scope Audit vulnerable or outdated dependencies in website/package.json Upgrade or replace [email protected] Upgrade qs to a safe supported version Assess migration path from Docusaurus v1 to a supported version Remove build-time warnings related to outdated Highlight.js / Browserslist data Acceptance criteria npm install and npm run build succeed cleanly No EOL warning from Highlight.js in the build No known high-severity dependency issues in the docs app The docs site still renders correctly after upgrades Notes There are smaller code issues in the repo, but this one should be prioritized because it has the largest impact on security, maintainability, and future development velocity.

Shashidar123 avatar Mar 20 '26 10:03 Shashidar123

Modernizing the Docs Site (Step-by-Step Plan)

  1. Audit Dependencies (Start here) Run: npm audit npm outdated πŸ‘‰ Goal: β€’ Identify vulnerabilities (especially high severity) β€’ See which packages are outdated
  2. Upgrade axios (High priority) Current: [email protected] (old + vulnerable) npm install axios@latest πŸ‘‰ After upgrading: β€’ Test all API calls β€’ Check for breaking changes (headers, interceptors)
  3. Upgrade qs Current: [email protected] npm install qs@latest πŸ‘‰ Reason: β€’ Older versions had prototype pollution vulnerabilities
  4. Fix Highlight.js EOL warning You’re seeing: Highlight.js v9 has reached EOL npm install highlight.js@latest πŸ‘‰ If it's used internally by Docusaurus v1: β€’ You may need to override or upgrade during migration
  5. Fix caniuse-lite warning npx update-browserslist-db@latest πŸ‘‰ This removes outdated Browserslist warnings
  6. Migrate Docusaurus (Major Task ⚠️) Current: β€’ [email protected] (deprecated) Target: β€’ Docusaurus v2 (actively maintained)

πŸ”Ή 7. Remove All Build Warnings Make sure: β€’ Highlight.js is updated β€’ Browserslist is updated β€’ No deprecated plugins remain πŸ”Ή 8. Validate Build (Acceptance Criteria) npm install npm run build πŸ‘‰ Expected: β€’ βœ… No warnings β€’ βœ… No errors β€’ βœ… Clean build output πŸ”Ή 9. Verify UI Rendering Check: β€’ Docs pages load correctly β€’ Navigation works β€’ Code blocks highlight properly πŸ”Ή 10. Security Check npm audit πŸ‘‰ Goal:

codewithsarvesh46 avatar Mar 29 '26 05:03 codewithsarvesh46