org.owasp.antisamy:antisamy@1.5.7 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the org.owasp.antisamy:antisamy package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting (XSS)

org.owasp.antisamy:antisamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) due to flawed parsing of HTML input in the neko-htmlunit dependency, when the preserveComments directive is enabled, which causes elements in comment tags to be interpreted as executable.

How to fix Cross-site Scripting (XSS)?

Upgrade org.owasp.antisamy:antisamy to version 1.7.5 or higher.

[,1.7.5)
  • M
Cross-site Scripting (XSS)

org.owasp.antisamy:antisamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) when the preserveComments directive is enabled and certain tags are allowed in the policy file. An attacker can execute elements in comment tags as part of a mutation XSS (mXSS) attack by crafting specific inputs.

How to fix Cross-site Scripting (XSS)?

Upgrade org.owasp.antisamy:antisamy to version 1.7.4 or higher.

[,1.7.4)
  • M
Cross-site Scripting (XSS)

org.owasp.antisamy:antisamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via HTML tag smuggling on STYLE content with a crafted input. This is due to an incomplete fix for CVE-2022-28367

How to fix Cross-site Scripting (XSS)?

Upgrade org.owasp.antisamy:antisamy to version 1.6.7 or higher.

[,1.6.7)
  • M
Cross-site Scripting (XSS)

org.owasp.antisamy:antisamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via HTML tag smuggling on STYLE content with crafted input. This is due to an improper serialization of the output which does not properly encode the supposed Cascading Style Sheets (CSS) content.

How to fix Cross-site Scripting (XSS)?

Upgrade org.owasp.antisamy:antisamy to version 1.6.6 or higher.

[,1.6.6)
  • M
Cross-site Scripting (XSS)

org.owasp.antisamy:antisamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via HTML attributes when using the HTML output serializer (XHTML is not affected). When serializing results to HTML, URLs are not being encoded when they are on HTML attributes. This can lead to mistakes when validating values.

How to fix Cross-site Scripting (XSS)?

Upgrade org.owasp.antisamy:antisamy to version 1.6.4 or higher.

[,1.6.4)