{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-23635","id":"CVE-2024-23635","title":"AntiSamy malicious input can provoke XSS when preserving comments","description":"AntiSamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources. Prior to 1.7.5, 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. As a result, certain crafty inputs can result ","descriptionLong":"AntiSamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources. Prior to 1.7.5, 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. As a result, certain crafty inputs can result in elements in comment tags being interpreted as executable when using AntiSamy's sanitized output. Patched in AntiSamy 1.7.5 and later. ","published":"2024-02-02T16:32:50.470Z","updated":"2026-10-28T02:30:47.487308855Z","reserved":"2024-01-19T00:18:53.232Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["nahsra antisamy"],"affectedProducts":[{"vendor":"nahsra","product":"antisamy","defaultStatus":null,"versions":[{"version":"< 1.7.5","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.owasp.antisamy:antisamy","purl":"pkg:maven/org.owasp.antisamy/antisamy","ranges":["<1.7.5"],"fixed":["1.7.5"],"advisory":"GHSA-2mrq-w8pv-5pvq"}],"cwes":["CWE-79"],"aliases":["GHSA-2mrq-w8pv-5pvq"],"references":[{"url":"https://github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq","tags":["x_refsource_CONFIRM","x_transferred","Mitigation","Third Party Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/23xxx/CVE-2024-23635.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23635","tags":["advisory"]},{"url":"https://github.com/nahsra/antisamy/commit/12a2e31d3855430c119480655c2bbbbb79a66ecd","tags":["web"]},{"url":"https://github.com/nahsra/antisamy/commit/3e84410ed06ab67f0a4cc3183c67528210f4847d","tags":["web"]},{"url":"https://github.com/nahsra/antisamy","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00368,"epssPercentile":0.31288,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-23635","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23635","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-23635","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2mrq-w8pv-5pvq","ok":true,"note":"GHSA-2mrq-w8pv-5pvq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-23635","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}