USN-9339-1: json-jwt vulnerabilities

Published Dec 1, 2026
·
Updated

It was discovered that json-jwt did not properly verify the authentication tag when decrypting AES-GCM encrypted JSON Web Tokens. A remote attacker could possibly use this issue to forge encrypted tokens. (CVE-2018-1000539) It was discovered that json-jwt did not check the number of elements when splitting JSON Web Encryption strings. A remote attacker could possibly use this issue to cause json-jwt to accept malformed tokens. (CVE-2019-18848)

Affected Software

2 affected componentsFixes available
All of the following
ubuntu/ruby-json-jwt<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/ruby-json-jwt to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro

Event History

Dec 1, 2026
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What capabilities would an attacker need to exploit these issues?

The issues can be exploited remotely by supplying crafted JSON Web Tokens to an application that uses the affected json-jwt functionality. One issue may allow forged AES-GCM encrypted tokens, while the other may cause malformed JSON Web Encryption strings to be accepted.

2

Which token types and processing paths are relevant?

The authentication-tag verification issue applies when decrypting AES-GCM encrypted JSON Web Tokens. The malformed-token issue applies when json-jwt splits JSON Web Encryption strings.

3

How can I determine whether an application may be exposed?

Review whether the application uses the ruby-json-jwt package and accepts or decrypts JSON Web Tokens from remote users. Exposure is particularly relevant if it processes AES-GCM encrypted tokens or JSON Web Encryption inputs.

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