{"id":"CVE-2026-71497","aliases":["CVE-2026-71497","GHSA-pmhh-3w7g-xqp8"],"related":[],"kind":"vulnerability","state":"published","title":"jsoup: Cleaner may expose markup with custom raw-text elements","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"When a custom `Safelist` permits certain raw-text elements, jsoup may incorrectly sanitize malformed HTML containing a tag name that ends in a control character. The tag may acquire the parsing behavior of a different element, causing content that should remain text to be emitted as active markup after serialization and potentially allowing XSS.\n\njsoup’s built-in Safelists are unaffected.\n\n## Patches\n\nUpgrade to jsoup 1.23.1.\n\n## Workarounds\n\nUntil upgrading, do not permit raw-text elements in custom Safelists used to clean untrusted HTML.\n\n## Additional security considerations\n\nThis fix addresses malformed tag-name handling only.\n\nPermitting raw-text elements in a custom `Safelist` does not make their contents inherently safe. For example, applications that permit `style` must apply appropriate CSS safeguards separately, because jsoup does not parse or sanitize CSS.","format":"markdown","source":"ghsa"},{"lang":"es","text":"jsoup es una biblioteca Java para trabajar con HTML del mundo real. Desde la versión 1.14.3 hasta la 1.23.1, el analizador HTML de jsoup podía manejar incorrectamente un nombre de etiqueta malformado que terminaba en un carácter de control, lo que provocaba que la etiqueta adquiriera el comportamiento de análisis de un elemento diferente. Cuando una Safelist personalizada permite ciertos elementos de texto sin formato, este análisis incorrecto puede hacer que el contenido que debería permanecer como texto inerte se emita como marcado activo después de la serialización, lo que podría resultar en cross-site scripting. Las Safelists integradas de jsoup no se ven afectadas. Este problema se ha solucionado en la versión 1.23.1.","source":"nvd"}],"published":"2026-08-06T21:09:31.489Z","modified":"2026-10-24T15:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 1.14.3, < 1.23.1","status":"affected"}],"vendor":"jhy","product":"jsoup","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.14.3","status":"affected","fixed":"1.23.1"}],"ecosystem":"Maven","package":"org.jsoup:jsoup","purl":"pkg:maven/org.jsoup/jsoup","source":"ghsa"}],"references":[{"url":"https://github.com/jhy/jsoup/security/advisories/GHSA-pmhh-3w7g-xqp8","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jhy/jsoup/issues/2538","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jhy/jsoup/commit/92f1aca552548b484bc7d4b94c51e48b8e6eca70","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jhy/jsoup/releases/tag/jsoup-1.23.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jhy/jsoup","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-07T14:37:48.066Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-71497","url":"https://www.cve.org/CVERecord?id=CVE-2026-71497","licence":"CVE Terms of Use","modified":"2026-08-07T14:37:56.848Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pmhh-3w7g-xqp8","url":"https://github.com/advisories/GHSA-pmhh-3w7g-xqp8","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:53.809Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-71497","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71497","licence":"Public domain","modified":"2026-10-24T15:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:31.814Z","epss":{"score":0.0019,"percentile":0.09122,"date":"2026-12-01T12:00:22.000Z"}}