jsoup — security advisory
jsoup is a Java library for working with real-world HTML. From 1.14.3 until 1.23.1, jsoup's HTML parser could incorrectly handle a malformed tag name ending in a control character, causing the tag to acquire the parsing behavior of a different element. When a custom Safelist permits certain raw-text elements, this misparsing can cause content that should remain inert text to be emitted as active markup after serialization, potentially resulting in cross-site scripting. jsoup's built-in Safelists are not affected. This issue is fixed in version 1.23.1.
- Products
- jsoup
- Affected versions
- 1.10.2-1, 1.10.2-2, 1.14.3-1, 1.15.3-1, 1.15.3-1build1, 1.7.2-1, 1.7.3-1, 1.7.3-1ubuntu0.1~esm2, 1.8.3-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-71497
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:14 UTC · Revision 1
Source evidence
jsoup is a Java library for working with real-world HTML. From 1.14.3 until 1.23.1, jsoup's HTML parser could incorrectly handle a malformed tag name ending in a control character, causing the tag to acquire the parsing behavior of a different element. When a custom Safelist permits certain raw-text elements, this misparsing can cause content that should remain inert text to be emitted as active markup after serialization, potentially resulting in cross-site scripting. jsoup's built-in Safelists are not affected. This issue is fixed in version 1.23.1.
osv:UBUNTU-CVE-2026-71497
jsoup
Fixed versions: Not specified
jsoup
Fixed versions: Not specified
jsoup
Fixed versions: Not specified
jsoup
Fixed versions: Not specified
jsoup
Fixed versions: Not specified
jsoup
Fixed versions: Not specified
jsoup
Fixed versions: Not specified
jsoup
Fixed versions: Not specified
Complete source record
{
"id": "81e69ba1f8e30bad0550f0db98931cfd718f0fa96c460151d129d43c0957a925",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-71497",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-71497",
"summary": "jsoup is a Java library for working with real-world HTML. From 1.14.3 until 1.23.1, jsoup's HTML parser could incorrectly handle a malformed tag name ending in a control character, causing the tag to acquire the parsing behavior of a different element. When a custom Safelist permits certain raw-text elements, this misparsing can cause content that should remain inert text to be emitted as active markup after serialization, potentially resulting in cross-site scripting. jsoup's built-in Safelists are not affected. This issue is fixed in version 1.23.1.",
"evidence": "osv:UBUNTU-CVE-2026-71497",
"products": [
{
"name": {
"value": "jsoup",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.7.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.7.3-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.7.3-1ubuntu0.1~esm2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "jsoup",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.8.3-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "jsoup",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.10.2-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.10.2-2",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "jsoup",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.10.2-2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "jsoup",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.10.2-2",
"evidence": "/affected/4/versions"
},
{
"value": "1.14.3-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "jsoup",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.15.3-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "jsoup",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.15.3-1build1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "jsoup",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.15.3-1",
"evidence": "/affected/7/versions"
},
{
"value": "1.15.3-1build1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-71497",
"aliases": [
"UBUNTU-CVE-2026-71497"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "jsoup",
"purl": "pkg:deb/ubuntu/jsoup?arch=source&distro=esm-infra-legacy%2Ftrusty",
"ecosystem": "Ubuntu:Pro:14.04:LTS"
},
"versions": [
"1.7.2-1",
"1.7.3-1",
"1.7.3-1ubuntu0.1~esm2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71497.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjsoup-java",
"binary_version": "1.7.3-1ubuntu0.1~esm2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "jsoup",
"purl": "pkg:deb/ubuntu/jsoup?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1.8.3-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71497.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjsoup-java",
"binary_version": "1.8.3-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "jsoup",
"purl": "pkg:deb/ubuntu/jsoup?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.10.2-1",
"1.10.2-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71497.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjsoup-java",
"binary_version": "1.10.2-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "jsoup",
"purl": "pkg:deb/ubuntu/jsoup?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.10.2-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71497.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjsoup-java",
"binary_version": "1.10.2-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "jsoup",
"purl": "pkg:deb/ubuntu/jsoup?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.10.2-2",
"1.14.3-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71497.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjsoup-java",
"binary_version": "1.14.3-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "jsoup",
"purl": "pkg:deb/ubuntu/jsoup?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.15.3-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71497.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjsoup-java",
"binary_version": "1.15.3-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "jsoup",
"purl": "pkg:deb/ubuntu/jsoup?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.15.3-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71497.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjsoup-java",
"binary_version": "1.15.3-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "jsoup",
"purl": "pkg:deb/ubuntu/jsoup?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.15.3-1",
"1.15.3-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71497.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libjsoup-java",
"binary_version": "1.15.3-1build1"
}
]
}
}
],
"modified": "2026-10-17T13:00:46.257741835Z",
"provider": "osv",
"upstream": [
"CVE-2026-71497"
],
"references": [
"https://ubuntu.com/security/CVE-2026-71497",
"https://www.cve.org/CVERecord?id=CVE-2026-71497",
"https://github.com/jhy/jsoup/security/advisories/GHSA-pmhh-3w7g-xqp8",
"https://github.com/jhy/jsoup/issues/2538",
"https://github.com/jhy/jsoup/commit/92f1aca552548b484bc7d4b94c51e48b8e6eca70",
"https://github.com/jhy/jsoup/releases/tag/jsoup-1.23.1"
]
},
"related_cves": [
{
"value": "CVE-2026-71497",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 360826,
"published_at": "2026-08-06T22:18:00+00:00"
}