Skip to content

fix: update vulnerable dependencies and scope the Pages OIDC token - #37

Merged
ValgulNecron merged 1 commit into
mainfrom
fix/security-hardening-2026-11-24
Nov 24, 2026
Merged

ValgulNecron merged 1 commit into
mainfrom
fix/security-hardening-2026-11-24

Conversation

@ValgulNecron

Copy link
Copy Markdown
Collaborator

Security review of the website (2026-11-24).

Severity Finding Fix
Critical (advisory; low reachability on a static site) astro 7.0.5 is in the <=7.4.6 range (checkOrigin bypass, attribute-spread XSS) npm audit fix → astro 7.4.13
High (mostly build-time) vite, postcss, svgo, sharp, zod, js-yaml, smol-toml, devalue, nanoid, source-map-js same npm audit fix (no --force)
Low the workflow-level id-token: write also reached the build job, which runs third-party npm code id-token: write only on the deploy job

Remaining: katex via mermaid (low, prototype pollution); the only fix is a breaking mermaid 12.3 bump, not done here. Mermaid runs with securityLevel: "strict".

Checked and sound: no set:html/innerHTML with dynamic content, no external scripts, no committed secrets, CI uses pull_request with read-only token.

npm ci && npm run check && npm run build pass locally (101 pages).


Generated by Claude Code

npm audit fix clears the critical astro advisory (now 7.4.13) and the high vite/postcss/svgo/sharp/zod/js-yaml/devalue/nanoid advisories. id-token: write moves from the workflow to the deploy job so the build job, which runs third-party npm code, never gets it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a86ad5dd-7e37-420b-81f9-a6ec6f848df7
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ValgulNecron ValgulNecron self-assigned this Nov 24, 2026
@ValgulNecron
ValgulNecron merged commit 0e8352a into main Nov 24, 2026
4 checks passed
@ValgulNecron
ValgulNecron deleted the fix/security-hardening-2026-11-24 branch November 24, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants