CVE-2015-10004: Timing side-channel vulnerability in github.com/robbert229/jwt

github.com/robbert229/jwt Updated 02 Oct 2025

Summary

14/04/2021
Yes i
High
7.5

CVE-2015-10004: Timing side-channel in github.com/robbert229/jwt. Affects github.com/robbert229/jwt versions < 0.0.0-20170426191122-ca1404ee6e83. Fixed in 0.0.0-20170426191122-ca1404ee6e83. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package github.com/robbert229/jwt is a Go library that provides functionality for JSON Web Tokens (JWTs). JWTs are used for securely transmitting information between parties as a JSON object. The library includes token validation methods that are susceptible to a timing side-channel during HMAC comparison. This vulnerability allows an attacker, with a large number of requests over a low latency connection, to determine the expected HMAC.

Vulnerability Detail

The timing side-channel vulnerability in github.com/robbert229/jwt arises due to the implementation of token validation methods. During HMAC comparison, the code does not handle timing differences properly, allowing an attacker to exploit the timing side-channel. By sending a large number of requests and measuring the response times, an attacker can infer the expected HMAC and potentially bypass token validation. This can lead to unauthorized access and potential data breaches.

How To Fix

Latest published version: v2.0.0+incompatible as of 23 Oct 2026

go get github.com/robbert229/jwt@v2.0.0+incompatible

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.0.0-20170426191122-ca1404ee6e83

This is the first release that contains the fix.

go get github.com/robbert229/jwt@v0.0.0-20170426191122-ca1404ee6e83

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update the package to the fixed version to mitigate the risk.

Conclusion

The timing side-channel vulnerability in github.com/robbert229/jwt can lead to unauthorized access and potential data breaches. It is crucial to update the package to the fixed version and rebuild applications to mitigate the risk. For further support, contact DevNack.com.

See every vulnerability recorded for github.com/robbert229/jwt →

Share this vulnerability

FAQ

This vulnerability allows an attacker to potentially bypass token validation and gain unauthorized access. It can lead to data breaches and compromise the security of the affected application.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Gopkg.lock file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

While there are no known public exploits for this specific vulnerability, it is important to address it promptly to prevent potential attacks.

Manually validating tokens may not be sufficient to mitigate this vulnerability. It is recommended to update the github.com/robbert229/jwt package to the fixed version, as it includes the necessary changes to handle the timing side-channel properly.

For further support on vulnerability remediation, you can reach out to info@devnack.com. They can provide guidance and assistance in addressing this vulnerability.

How To Fix

Latest published version: v2.0.0+incompatible as of 23 Oct 2026

go get github.com/robbert229/jwt@v2.0.0+incompatible

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.0.0-20170426191122-ca1404ee6e83

This is the first release that contains the fix.

go get github.com/robbert229/jwt@v0.0.0-20170426191122-ca1404ee6e83

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback