<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-10T14:58:19.105614+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-g9gq-3pfx-2gw2</id>
    <title>GHSA-g9gq-3pfx-2gw2 — OWASP Java HTML Sanitizer is vulnerable to XSS via noscript tag and improper style tag sanitization</title>
    <updated>2026-10-10T14:58:19.107734+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Maven: com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer</p>
<p>### Summary
It is observed that OWASP java html sanitizer is vulnerable to XSS if HtmlPolicyBuilder allows `noscript` and `style` tags with `allowTextIn` inside the style tag. This could lead to XSS if the payload is crafted in such a way that it does not sanitise the CSS and allows tags which is not mentioned in HTML policy.</p>
<p>### Details</p>
<p>The OWASP java HTML sanitizer is vulnerable to XSS. This only happens when HtmlPolicyBuilder allows `noscript` &amp; `style` tag with `allowTextIn` inside style tags.</p>
<p>The following condition is very edge case but if users combine a HtmlPolicyBuilder with any other tags except `noscript` and allow `style` tag with `allowTextIn` inside the style tag then In this case sanitizer would be safe from XSS. This happens because how the browser also perceives `noscript` tags post sanitization.</p>
<p>### PoC</p>
<p>1.  Lets create a `HtmlPolicyBuilder` which allows `p, noscript, style` html tags and allows `.allowTextIn("style")`.
2.  There are two XSS payloads which very identical and only difference is one has p tag and other has noscript tag.
These payload have script tags that could be vulnerable to XSS and should be stripped out after sanitisation.</p>
<p>```HTML
1. &lt;noscript&gt;&lt;style&gt;&lt;/noscript&gt;&lt;script&gt;alert(1)&lt;/script&gt;
2. &lt;p&gt;&lt;style&gt;&lt;/p&gt;&lt;script&gt;alert(1)&lt;/script&gt;
```</p>
<p>3. Run the following piece of code which sanitizes the payload.</p>
<p>```java
public class main {
	private static final String ALLOWED_HTML_TAGS = "p, noscript, style";</p>
<p>/**
	 * Description of vulnerabil…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-g9gq-3pfx-2gw2"/>
  </entry>
</feed>
