WaratekVRT Sign in

CVE-2023-43643 AntiSamy

Affected softwareAntiSamy
Severity6.1 Medium CVSS 3.1 2 scores
Fixed in1.7.4
WeaknessCross-site scripting (CWE-79)
Published9 Oct 2023
Updated13 Nov 2026

Description

AntiSamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources. Prior to version 1.7.4, there is a potential for a mutation XSS (mXSS) vulnerability in AntiSamy caused by flawed parsing of the HTML being sanitized. To be subject to this vulnerability the preserveComments directive must be enabled in your policy file and also allow for certain tags at the same time. As a result, certain crafty inputs can result in elements in comment tags being interpreted as executable when using AntiSamy's sanitized output. This issue has been patched in AntiSamy 1.7.4 and later.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 3 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 0.54% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

  • Protection full XSS
  • Action available security rule
  • Review human Researcher
  • Record active
Decided by A researcher's recorded decision for this specific CVE
Finding A researcher found this CVE protected by the ARMR XSS Rule.

Waratek research note

written 2026-11-13

Written by a Waratek engineer who reviewed this CVE. Their decision sets the status above, ahead of every automated rule except a withdrawal.

Comments

Rule Name: XSS Rule

How to mitigate CVE-2023-43643

Upgrade AntiSamy to 1.7.4 or later. Until you can, Waratek RASP blocks exploitation with its XSS rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

6.1 MEDIUM v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 6.1 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N security-advisories@github.com Secondary published
CVSS 3.1 6.1 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N NVD Primary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update January 2024 ↗ CPU 2024-Q1 Oracle Fusion Middleware / Centralized Thirdparty Jars (AntiSamy) (12.2.1.4.0, 14.1.1.0.0)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Fusion Middleware Centralized Thirdparty Jars (AntiSamy) 12.2.1.4.0, 14.1.1.0.0 12.2.1.4.0 · 14.1.1.0.0

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.owasp.antisamy:antisamy 0 1.7.4 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
nvd antisamy project antisamy generic < 1.7.4
osv org.owasp.antisamy antisamy generic < 1.7.4

References

URLTags
https://github.com/nahsra/antisamy/security/advisories/GHSA-pcf2-gh6g-h5r2 WEB
https://github.com/nahsra/antisamy PACKAGE
https://github.com/nahsra/antisamy/releases/tag/v1.7.4 WEB

Timeline

Published2023-10-09By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.
Classification created2026-11-13First commit adding this CVE's research note.
Last VRT activity2026-11-13Most recent commit touching this CVE's classification, patch or rule file.