Skip to content

fix: JWT Signature Verification Bypass via None Algorithm#62

Merged
beatt83 merged 1 commit into
mainfrom
feature/security-GHSA-88q6-jcjg-hvmw
Jan 10, 2026
Merged

fix: JWT Signature Verification Bypass via None Algorithm#62
beatt83 merged 1 commit into
mainfrom
feature/security-GHSA-88q6-jcjg-hvmw

Conversation

@beatt83

@beatt83 beatt83 commented Jan 9, 2026

Copy link
Copy Markdown
Owner

A security risk was identified GHSA-88q6-jcjg-hvmw, it is addressed in 2 parts. First the JWS verification will now throw an error if it detects a JWS header with algorithm none and a signature present. Second a new validator was added to the JWT, now its possible to easily black list certain algorithms, by default none will be black listed, so it requires developer opt-in to remove it from the black list.

@beatt83 beatt83 force-pushed the feature/security-GHSA-88q6-jcjg-hvmw branch 5 times, most recently from 0644799 to 78c3cac Compare January 9, 2026 10:11
A security risk was identified (GHSA-88q6-jcjg-hvmw), it is addressed in 2 parts.
First the JWS verification will now throw an error if it detects a JWS header with algorithm `none` and a signature present.
Second a new validator was added to the JWT, now its possible to easily black list certain algorithms, by default `none` will be black listed, so it requires developer opt-in to remove it from the black list.
@beatt83 beatt83 force-pushed the feature/security-GHSA-88q6-jcjg-hvmw branch from 78c3cac to c9ff623 Compare January 9, 2026 10:13
@beatt83 beatt83 merged commit 13e5ae6 into main Jan 10, 2026
3 checks passed
@beatt83 beatt83 deleted the feature/security-GHSA-88q6-jcjg-hvmw branch January 10, 2026 11:51
@snyff

snyff commented Jan 10, 2026

Copy link
Copy Markdown

Another strategy I saw in other codebase is to only allow none if the secret used is an empty string.

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