Skip to content

chore(website): clear all npm audit findings via lockfile refresh - #56849

Open
infocentr wants to merge 1 commit into
NousResearch:mainfrom
infocentr:chore/website-npm-osv-bumps
Open

chore(website): clear all npm audit findings via lockfile refresh#56849
infocentr wants to merge 1 commit into
NousResearch:mainfrom
infocentr:chore/website-npm-osv-bumps

Conversation

@infocentr

Copy link
Copy Markdown

Summary

package.json is untouched — this regenerates website/package-lock.json so every flagged transitive resolves to its patched release. npm audit goes from 9 vulnerabilities (2 high, 6 moderate, 1 low) to 0:

Package Severity Advisory
undici high TLS certificate validation bypass; Set-Cookie header injection
ws high Memory-exhaustion DoS via tiny fragments
webpack-dev-server moderate HMR WebSocket interception
http-proxy-middleware moderate Host confusion via substring router matching
launch-editor moderate NTLMv2 hash disclosure via UNC paths (Windows)
dompurify moderate IN_PLACE nodeName trust; hook mutation of allowlists
joi moderate Uncaught RangeError on deeply nested input
js-yaml moderate Quadratic-complexity DoS in merge-key handling
@babel/core low Arbitrary file read via sourceMappingURL comment

The newer @types/react resolution removes the global JSX namespace, so the two components returning JSX.Element now use React.JSX.Element, with a minimal custom.d.ts + tsconfig types entry to keep tsc clean.

Testing

  • npm ci && npm run build — Docusaurus SUCCESS for both en and zh-Hans locales (the zh-Hans broken-anchor warnings pre-exist on main)
  • npx tsc --noEmit -p tsconfig.json — clean

🤖 Generated with Claude Code

package.json is untouched — this regenerates package-lock.json so every
flagged transitive resolves to its patched release, taking npm audit from
9 vulnerabilities (2 high, 6 moderate, 1 low) to 0:

- undici (high): TLS cert validation bypass, Set-Cookie header injection
- ws (high): memory-exhaustion DoS via tiny fragments
- webpack-dev-server, http-proxy-middleware, launch-editor, dompurify,
  joi, js-yaml (moderate), @babel/core (low)

The newer @types/react resolution removes the global JSX namespace, so the
two components that returned JSX.Element now use React.JSX.Element, with a
minimal custom.d.ts + tsconfig types entry to keep tsc clean.

Verified: npm ci && npm run build (Docusaurus SUCCESS, en + zh-Hans) and
npx tsc --noEmit both pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@infocentr
infocentr requested a review from a team July 2, 2026 06:29
@alt-glitch alt-glitch added type/refactor Code restructuring, no behavior change comp/dashboard Web dashboard / control panel UI (dashboard/, landing) area/config Config system, migrations, profiles P3 Low — cosmetic, nice to have labels Jul 2, 2026
@teknium1 teknium1 added sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades sweeper:blast-moderate Sweeper blast radius: moderate — a subsystem or single platform labels Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/dashboard Web dashboard / control panel UI (dashboard/, landing) P3 Low — cosmetic, nice to have sweeper:blast-moderate Sweeper blast radius: moderate — a subsystem or single platform sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades type/refactor Code restructuring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants