Skip to content

Close all open Dependabot alerts: Next.js 16.4, transitive fixes, PyJWT for python-jose - #19

Merged
Cristian-Curaba merged 2 commits into
mainfrom
fix/deps-and-jwt
Oct 16, 2026
Merged

Cristian-Curaba merged 2 commits into
mainfrom
fix/deps-and-jwt

Conversation

@Cristian-Curaba

Copy link
Copy Markdown
Collaborator

Closes every open Dependabot alert on main (13: 2 critical, 3 high, 7 moderate, 1 low).

Frontend

  • next / eslint-config-next 16.2 → 16.4.0: alert 27 (critical, next/og RCE) and 38–43.
  • npm audit fix: sharp 0.35.5, source-map-js 1.2.2, smol-toml 1.9.1, brace-expansion 1.1.21 / 5.0.12 (32, 33, 35–37).
  • tsconfig.json excludes .next/dev/types/validator.ts (Next 16.4's dev server writes unused type imports there).

Backend

  • python-jose has no fixed release for CVE-2026-85394 (alert 44, critical). auth/oauth2.py now verifies with PyJWT 2.15.1 (MIT) against the IdP's JWKS, with algorithms=[settings.jwt_algorithm]; config.jwt_algorithm accepts only RS256/RS384/RS512.
  • ecdsa leaves with python-jose, so both documented pip-audit ignores are removed from scripts/audit.sh and CI.
  • New test/test_jwt_verification.py signs real tokens: valid; wrong audience, issuer or expiry; signed by another key; HS256 forged with the public key (PEM and DER); kid miss → one JWKS refetch.

Checks run locally: backend scripts/audit.sh (ruff, pyright, bandit, pip-audit with no ignores, vulture, deptry, import-linter, 284 pytest); frontend lint, tsc, 438 vitest, knip, madge, production build; detect-secrets baseline unchanged.

🤖 Generated with Claude Code

Cristian-Curaba and others added 2 commits October 16, 2026 09:15
next and eslint-config-next 16.4.0 close alerts 27 (critical, next/og
RCE), 38–43; npm audit fix brings sharp 0.35.5, source-map-js 1.2.2,
smol-toml 1.9.1 and brace-expansion 1.1.21/5.0.12 (alerts 32, 33, 35–37).
tsconfig leaves out the dev server's route validator, whose unused type
imports broke tsc after `next dev` (as on feat/temporal-simulation-ui).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Cristian Curaba <cristiancuraba00@gmail.com>
python-jose has no release fixing CVE-2026-85394 (alert 44, critical:
HS256 forged with a DER public key). auth/oauth2.py now verifies with
PyJWT 2.15.1 against the JWKS, accepting only the configured RS*
algorithm, so an HS256 token is refused before any key is used; config
refuses HS*/none. ecdsa (PYSEC-2026-1325) leaves with python-jose, so
pip-audit in audit.sh and CI runs with no ignores. New tests sign real
tokens: valid, wrong audience/issuer, expired, another key, HS256 with
the public key (PEM and DER), and a kid-miss JWKS refetch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Cristian Curaba <cristiancuraba00@gmail.com>
@Cristian-Curaba
Cristian-Curaba merged commit a58cf5c into main Oct 16, 2026
6 checks passed
@Cristian-Curaba
Cristian-Curaba deleted the fix/deps-and-jwt branch October 16, 2026 07:18
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.

1 participant