HighFix available
json-smart — security advisory
A vulnerability was discovered in the indexOf function of JSONParserByteArray in JSON Smart versions 1.3 and 2.4 which causes a denial of service (DOS) via a crafted web request.
- Products
- json-smart
- Affected versions
- 2.2-2
- Fixed versions
- 2.2-2+deb12u1, 2.5.1-1
- CVEs
- CVE-2021-31684
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:22 UTC · Revision 1
Source evidence
A vulnerability was discovered in the indexOf function of JSONParserByteArray in JSON Smart versions 1.3 and 2.4 which causes a denial of service (DOS) via a crafted web request.
osv:DEBIAN-CVE-2021-31684
json-smart
Fixed versions: 2.2-2+deb12u1
json-smart
Fixed versions: 2.5.1-1
json-smart
Fixed versions: 2.5.1-1
Complete source record
{
"id": "bf775d5cbd3d42ed3a1f4ecfb15b364a0ac7137d3ac62b30b6b7578c09c49be7",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-31684",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-31684",
"summary": "A vulnerability was discovered in the indexOf function of JSONParserByteArray in JSON Smart versions 1.3 and 2.4 which causes a denial of service (DOS) via a crafted web request.",
"evidence": "osv:DEBIAN-CVE-2021-31684",
"products": [
{
"name": {
"value": "json-smart",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.2-2+deb12u1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "2.2-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "json-smart",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.5.1-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "json-smart",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.5.1-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2021-31684",
"aliases": [
"DEBIAN-CVE-2021-31684"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.2-2+deb12u1"
}
]
}
],
"package": {
"name": "json-smart",
"purl": "pkg:deb/debian/json-smart?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"2.2-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-31684.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.5.1-1"
}
]
}
],
"package": {
"name": "json-smart",
"purl": "pkg:deb/debian/json-smart?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-31684.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.5.1-1"
}
]
}
],
"package": {
"name": "json-smart",
"purl": "pkg:deb/debian/json-smart?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-31684.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
}
],
"modified": "2026-10-23T18:03:13.696542436Z",
"provider": "osv",
"upstream": [
"CVE-2021-31684"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-31684"
]
},
"related_cves": [
{
"value": "CVE-2021-31684",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 420877,
"published_at": "2021-06-01T20:15:08.48+00:00"
}