Skip to main content
EPSS 0.2%top 91%

CVE-2026-71497: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in jhy jsoup

0
Medium
Published: 08/06/2026 (08/06/2026, 21:09:31 UTC)
Source: CVE Database V5
Vendor/Project: jhy
Product: jsoup

Description

A cross-site scripting (XSS) vulnerability exists in jsoup, a Java HTML parsing library, in versions from 1.14.3 up to but not including 1.23.1. The issue arises when the parser incorrectly handles malformed tag names ending with control characters, causing misparsing that can lead to active markup being emitted instead of inert text when using custom Safelists that allow certain raw-text elements. The built-in Safelists are not affected. This vulnerability has a medium severity score and is fixed in version 1.23.1.

CVSS v3.1

Score 4.7medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected software

jhy

jsoup

Affected versions
>=1.14.3 <1.23.1
org.jsoup/jsoup
pkg:maven/org.jsoup/jsoup
Affected versions
>=1.14.3 <1.23.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 16:17:17 UTC

Technical Analysis

jsoup versions >=1.14.3 and <1.23.1 contain a CWE-79 cross-site scripting vulnerability due to improper neutralization of input during web page generation. Specifically, the HTML parser mishandles malformed tag names ending in control characters, causing tags to behave as different elements. When custom Safelists permit certain raw-text elements, this misparsing can result in content that should be inert text being serialized as active markup, potentially enabling XSS attacks. The issue does not affect jsoup's built-in Safelists and is resolved in version 1.23.1.

Potential Impact

This vulnerability could allow an attacker to inject active markup via malformed HTML input when custom Safelists are used, potentially leading to cross-site scripting attacks. The impact is limited to scenarios where custom Safelists permit certain raw-text elements and the vulnerable jsoup versions are used. The built-in Safelists are not vulnerable, reducing the risk in typical usage scenarios.

Mitigation Recommendations

Upgrade jsoup to version 1.23.1 or later, where this vulnerability is fixed. Avoid using custom Safelists that permit raw-text elements if upgrading is not immediately possible. Since no official patch link or vendor advisory is provided, verify the fix by consulting the official jsoup release notes or repository.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-08-06T19:56:23.726Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a750711bf8831d5395f5e17

Added to database: 08/06/2026, 22:13:37 UTC

Last enriched: 08/14/2026, 16:17:17 UTC

Last updated: 09/21/2026, 22:01:37 UTC

Views: 72

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses