patchminder
Proof of concept · GitHub CVE-2015-9235

Vulnerabilityin the jsonwebtoken package.

Published 29 May 2018 · Updated 16 Sep 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Not scored
No source has scored it yet
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 8.4% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 4.2.2 or later
In plain words

In jsonwebtoken node module before 4.2.2 it is possible for an attacker to bypass verification when a token digitally signed with an asymmetric key (RS/ES family) of algorithms but instead the attacker send a token digitally signed with a symmetric algorithm (HS* family).

What to do now
  • Upgrade jsonwebtoken node module to 4.2.2 or later.
  • Upgrade jsonwebtoken (npm) to 4.2.2 or later.

Not confirmed by any source yet: severity not scored yet. We show these as not confirmed instead of guessing.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
jsonwebtoken node module
before 4.2.2
4.2.2
CVE record
jsonwebtoken (npm)
before 4.2.2
4.2.2
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 29 Oct 2017
    CVE ID reserved by hackerone.
  2. 29 May 2018
    Published in the CVE List.
  3. 13 Jan 2022
    First public proof of concept on GitHub.
  4. 16 Sep 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
4 repositories
GitHubno warning signs foundz-bool/Venom-JWT287 stars · created 27 Jan 2025针对JWT渗透开发的漏洞验证/密钥爆破工具,针对CVE-2015-9235/空白密钥/未验证签名攻击/CVE-2016-10555/CVE-2018-0114/CVE-2020-28042的结果生成用于FUZZ,也可使用字
GitHubno warning signs foundNxvh1337/CVE-2015-9235_JWT_key_confusion3 stars · created 10 Sep 2023automate CVE-2015-9235 exploitation
GitHubno warning signs foundaalex954/jwt-key-confusion-poc2 stars · created 13 Jan 2022JWT Key Confusion PoC (CVE-2015-9235) Written for the Hack the Box challenge · Under Construction
GitHubno warning signs foundtierChampion/POC_CVE-2015-92350 stars · created 11 Mar 2026Demo of the algorithm confusion attack on various JWT libraries

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vulnerabilities in this package

Same weakness: Improper input validation

All CWE-20 vulnerabilities

References
Cite this page

Patchminder. CVE-2015-9235: Vulnerability in the jsonwebtoken package. https://patchminder.com/cve/cve-2015-9235/ (accessed 5 December 2026).