PER-14336: Remediate npm vulnerabilities (97→10) and remove unused dependencies#619
Open
PER-14336: Remediate npm vulnerabilities (97→10) and remove unused dependencies#619
Conversation
- Remove `npm` from production dependencies (~25 vulns eliminated) - Update axios 1.8.4 → 1.14.0 (pinned, fixes DoS CVE-2026-25639) - Update lodash 4.17.21 → 4.17.23 (pinned, fixes prototype pollution) - Update @playwright/test 1.50.0 → 1.58.2 (fixes SSL cert bypass) - Update all @docusaurus/* packages 3.7.0 → 3.9.2 - Update react-syntax-highlighter 15.6.1 → 16.1.1 (fixes prismjs XSS) - Update react-code-blocks 0.0.9-0 → 0.1.6 - Add npm overrides for transitive vulns (serialize-javascript, node-forge, cross-spawn, picomatch, minimatch) - Add ajv@8 + ajv-formats as devDependencies to fix schema-utils@4 compat - Remove stale packageManager field (yarn@1.22.22 with no yarn.lock) - Add .github/dependabot.yml for automated npm + GH Actions updates Remaining 10 vulns are in @untitaker/hyperlink (dev-only) and react-code-blocks (bundled prismjs, no upstream fix available). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for permitio-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- lodash: no imports in source code (transitive deps have own copies) - ignore-styles: zero references in codebase - postcss-preset-env: not in any PostCSS config (only tailwindcss/autoprefixer used) - remark-gfm: Docusaurus 3.x has built-in GFM support - @babel/register: commented out in docusaurus.config.js Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reduces npm security vulnerabilities and simplifies the dependency graph by upgrading key packages, removing unused/abnormal dependencies, adding npm overrides for vulnerable transitive deps, and introducing Dependabot for ongoing automated updates.
Changes:
- Upgraded Docusaurus, axios, Playwright, and code-highlighting packages; removed several unused dependencies.
- Added npm
overridesentries to remediate vulnerable transitive dependencies. - Added
.github/dependabot.ymlto enable weekly npm and GitHub Actions update scanning.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| package.json | Dependency upgrades/removals plus new npm overrides and devDependency additions. |
| .github/dependabot.yml | Adds weekly Dependabot update configuration for npm and GitHub Actions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Newer @argos-ci/core no longer auto-detects the GitHub token and requires an explicit ARGOS_TOKEN secret. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packageManageryarn fieldLinear Issue
PER-14336
What changed
Removed unused dependencies
lodashignore-stylespostcss-preset-envremark-gfm@babel/registernpmDirect dependency updates
axios@docusaurus/*(7 pkgs)react-syntax-highlighterreact-code-blocks@playwright/testInfrastructure
.github/dependabot.yml— weekly npm + GitHub Actions update scanningajv@8.18.0+ajv-formats@3.0.1as devDependencies (fixes schema-utils@4 compatibility with Docusaurus 3.9.2)overridesfor: serialize-javascript, node-forge, cross-spawn, picomatch, minimatchpackageManager: yarn@1.22.22field (no yarn.lock exists)Remaining vulnerabilities (10)
All in transitive dependencies with no available fix:
Test plan
npm run build— full production build succeedsnpm run hyperlink— 0 bad links, 0 bad anchors across 2363 filesnpm audit— verified 10 remaining (down from 97)npm ls axios— confirmed no compromised versions (1.7.9/0.8.3)Tests
Generated with Claude Code