Skip to content

JWT token created with none algorithm#345

Open
chanel-y wants to merge 2 commits intomainfrom
users/chanely/jwt-none-algorithm
Open

JWT token created with none algorithm#345
chanel-y wants to merge 2 commits intomainfrom
users/chanely/jwt-none-algorithm

Conversation

@chanel-y
Copy link
Copy Markdown

No description provided.

chanel-y and others added 2 commits April 9, 2026 09:41
Detects usage of 'none' algorithm in JWT token creation via PowerShell
modules (New-Jwt, etc.) and .NET JWT APIs (CreateToken, etc.).

Covers: Cryptography.10033 (CWE-347)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just one tiny follow up request, but that shouldn't block this

@@ -0,0 +1 @@
queries/security/cwe-347/JwtNoneAlgorithm.ql
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably add support for inline expectation query tests for PowerShell sooner rather than later. Would you be up for doing this, Chanel? You can see how it's done for other languages here: github#17548

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