JWX vulnerable to a denial of service attack using compressed JWE message
JWX is Go module implementing various JWx (JWA/JWE/JWK/JWS/JWT, otherwise known as JOSE) technologies. This vulnerability allows an attacker with a trusted public key to cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. This issue has been patched in versions 1.2.29 and 2.0.21.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-28122
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 16:27 UTC · Revision 1
Source evidence
JWX vulnerable to a denial of service attack using compressed JWE message
core-osv · Original sourcePublished 9 Mar 2024, 00:45 UTC
JWX is Go module implementing various JWx (JWA/JWE/JWK/JWS/JWT, otherwise known as JOSE) technologies. This vulnerability allows an attacker with a trusted public key to cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. This issue has been patched in versions 1.2.29 and 2.0.21.
osv:CVE-2024-28122
Complete source record
{
"id": "b8ad970f10936de9a1f696094dbbfa90fc72c82e98e4d9573a0e2e9c925390ec",
"url": "https://osv.dev/vulnerability/CVE-2024-28122",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "JWX vulnerable to a denial of service attack using compressed JWE message",
"summary": "JWX is Go module implementing various JWx (JWA/JWE/JWK/JWS/JWT, otherwise known as JOSE) technologies. This vulnerability allows an attacker with a trusted public key to cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. This issue has been patched in versions 1.2.29 and 2.0.21.",
"evidence": "osv:CVE-2024-28122",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-28122",
"aliases": [
"CVE-2024-28122",
"GHSA-hj3v-m684-v259",
"GO-2024-2632"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/lestrrat-go/jwx",
"type": "GIT",
"events": [
{
"introduced": "8f97f606570bc3de90005ce3188824e7e7eff88a"
},
{
"fixed": "611d914efbccb0babbce54e48457070e12ab6498"
},
{
"introduced": "20fcd2aaea33121a0da375914a254615b3527c46"
},
{
"fixed": "1025f8eec3bd80c8d8f1be8f9cad989a5b78fd4b"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.0.21"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "1.2.0"
},
{
"fixed": "1.2.29"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "1025f8eec3bd80c8d8f1be8f9cad989a5b78fd4b"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v1.2.29"
},
{
"range": [
{
"fixed": "611d914efbccb0babbce54e48457070e12ab6498"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.0.21"
}
]
}
}
],
"versions": [
"v1.2.28",
"v2.0.20",
"v2.0.19",
"v1.2.27",
"v2.0.18",
"v1.2.26",
"v2.0.17",
"v2.0.16",
"v2.0.15",
"v2.0.14",
"v2.0.10",
"v1.2.25",
"v2.0.9",
"v2.0.8",
"v2.0.7",
"v2.0.6",
"v2.0.5",
"v2.0.4",
"v2.0.3",
"v2.0.2",
"v2.0.1",
"v1.2.24",
"v2.0.0",
"v1.2.23",
"v1.2.22",
"v1.2.21",
"v1.2.20",
"v1.2.19",
"v1.2.18",
"v1.2.17",
"v1.2.15",
"v1.2.14",
"v1.2.13",
"v1.2.12",
"v1.2.11",
"v1.2.10",
"v1.2.9",
"v1.2.8",
"v1.2.7",
"v1.2.6",
"v1.2.5",
"v1.2.4",
"v1.2.3",
"v1.2.2",
"v1.2.1",
"v1.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-28122.json"
}
}
],
"modified": "2026-10-28T02:30:21.259458784Z",
"provider": "osv",
"references": [
"https://github.com/lestrrat-go/jwx/releases/tag/v1.2.29",
"https://github.com/lestrrat-go/jwx/releases/tag/v2.0.21",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28122.json",
"https://github.com/lestrrat-go/jwx/security/advisories/GHSA-hj3v-m684-v259",
"https://nvd.nist.gov/vuln/detail/CVE-2024-28122"
],
"provider_metadata": {
"cwe_ids": [
"CWE-400"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28122.json"
}
},
"related_cves": [
{
"value": "CVE-2024-28122",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 487135,
"published_at": "2024-03-09T00:45:50.129+00:00"
}