CVE-2026-62995: joserfc accepts JWT with padding, leading to JWT malleability

Published Jul 29, 2026
·
Updated

joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. in versions 1.7.1 and prior, joserfc accepts JWTs with trailing padding (==) which are not conforming to the JOSE specifications. This leads to malleability of the JWTs when consumed by joserfc. Depending on this application this might or not be an issue. This could lead to bypass of token revocation or anti-replay protection when implemented as a deny list of tokens or a deny list of token hashes. Note that ECDSA JWS are always malleable because of the malleability of ECDSA signatures (first test case in the code bellow). This makes a scheme which assumes that JWTs are not malleable brittle. However for other signatures (or MAC) schemes it might make sense to assume non malleability of the token. This issue has been fixed in version 1.7.2.

Affected Software

1 affected component
pypi/joserfc<=1.7.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.7.2

Event History

Jul 29, 2026
CVE Published
via MITRE·06:27 PM
Data Sourced
via MITRE·06:27 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-62995?

CVE-2026-62995 has a risk rating of 33, indicating a significant security concern.

2

How do I fix CVE-2026-62995?

To fix CVE-2026-62995, upgrade to joserfc version 1.7.2 or later.

3

What impact does CVE-2026-62995 have on JWTs?

CVE-2026-62995 allows for JWT malleability due to the acceptance of trailing padding in JWTs, compromising integrity.

4

Which versions of joserfc are affected by CVE-2026-62995?

CVE-2026-62995 affects joserfc versions 1.7.1 and prior.

5

Is there a workaround for CVE-2026-62995 before upgrading?

A temporary workaround for CVE-2026-62995 is to implement validation checks for JWT padding before processing.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203