CVE-2026-65632
Last modified
CVE-2026-65632 is a medium-severity vulnerability rated 5.1/10 on the CVSS scale. The jose library accepts ECDSA (ES256, ES256K, ES384, and ES512) JWS signatures of a non-canonical length. When verifying an ECDSA signature, jose_jwk_kty_ec:verify/4 in src/jwk/jose_jwk_kty_ec.erl splits the raw signature in half by its actual byte length (split_binary(Signature, byte_size(Signature) div 2)) instead of enforcing the fixed length required by RFC 7518 §3.4, and then decodes each half with crypto:bytes_to_integer/1, which ignores leading zero bytes. As a result, an attacker who holds one valid token can prepend leading zero bytes to each of the R and S halves to produce longer signatures that still split evenly and decode to the same (r, s) pair, so many distinct signature byte strings all verify against the same key (signature malleability). EPSS estimates a 0.09% chance of exploitation in the next 30 days.
Description
The jose library accepts ECDSA (ES256, ES256K, ES384, and ES512) JWS signatures of a non-canonical length. When verifying an ECDSA signature, jose_jwk_kty_ec:verify/4 in src/jwk/jose_jwk_kty_ec.erl splits the raw signature in half by its actual byte length (split_binary(Signature, byte_size(Signature) div 2)) instead of enforcing the fixed length required by RFC 7518 §3.4, and then decodes each half with crypto:bytes_to_integer/1, which ignores leading zero bytes. As a result, an attacker who holds one valid token can prepend leading zero bytes to each of the R and S halves to produce longer signatures that still split evenly and decode to the same (r, s) pair, so many distinct signature byte strings all verify against the same key (signature malleability). This does not allow forging new payloads or impersonating a signer, because the underlying (r, s) values are unchanged. It does defeat any security control that assumes a valid token or its signature is unique, such as token-revocation-by-hash, replay or idempotency caches, and deduplication logic. This issue affects jose: from 1.0.0 before 1.11.13.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| potatosalad | jose | >= 1.0.0, < 1.11.13 |
| potatosalad | jose | >= a7746ecd4950f85a393136e449a91dac62b5c429, < 72ce1866622b9329347dc52a94173ac0317bc9cf |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-65632?
How severe is CVE-2026-65632?
How do I fix CVE-2026-65632?
How Strix Helps
- Same Subject, Wrong User: A Cross-Issuer Account Takeover in n8nStrix found an identity-binding bug in n8n's token-exchange flow enabling account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-65627Improper Handling of Highly Compressed Data (Data Amplificat…6.9
- CVE-2026-65628jose_jwk:shared_secret/2 (exposed in Elixir as JOSE.JWK.shar…5.9
- CVE-2026-65629Use of Password Hash With Insufficient Computational Effort …7.4
- CVE-2026-6563A vulnerability has been found in H3C Magic B1 up to 100R004…8.8
- CVE-2026-65630Observable Timing Discrepancy vulnerability in potatosalad j…5.9
- CVE-2026-65631Inefficient Algorithmic Complexity in erlang-jose allows an …6.9
- CVE-2026-65633Improper Authentication vulnerability in team-alembic AshAut…7.6
- CVE-2026-65634Inefficient algorithmic complexity in the Erlang/OTP asn1 OB…8.2
- CVE-2026-65635Improper Isolation or Compartmentalization vulnerability in …8.3
- CVE-2026-65636Improper Neutralization of CRLF Sequences vulnerability in u…2.1
- CVE-2026-65637Improper Input Validation vulnerability in Apache Tomcat due…9.8
- CVE-2026-65638Improper escaping of a request URL in ConfigServer Security…9.2
Are you affected by CVE-2026-65632?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
