{"id":"CVE-2024-23635","state":"PUBLISHED","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 in elements in comment tags being interpreted as executable when using AntiSamy's sanitized output. Patched in AntiSamy 1.7.5 and later. ","publishedAt":"2024-02-02T16:32:50.470Z","updatedAt":"2024-08-01T23:06:25.335Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["nahsra antisamy"],"affected":[{"vendor":"nahsra","product":"antisamy","versions":[{"version":"< 1.7.5","status":"affected"}]}],"references":["https://github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:06:59.846Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/23xxx/CVE-2024-23635.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-23635","state":"PUBLISHED","datePublished":"2024-02-02T16:32:50.470Z","dateUpdated":"2024-08-01T23:06:25.335Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-01-19T00:18:53.232Z"},"containers":{"cna":{"title":"AntiSamy malicious input can provoke XSS when preserving comments","descriptions":[{"lang":"en","value":"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. "}],"affected":[{"vendor":"nahsra","product":"antisamy","versions":[{"version":"< 1.7.5","status":"affected"}]}],"references":[{"url":"https://github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq","name":"https://github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-02-02T16:32:50.470Z"},"source":{"advisory":"GHSA-2mrq-w8pv-5pvq","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-23635","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-03-07T18:47:07.109365Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:46:02.094Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq","name":"https://github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T23:06:25.335Z"}}]}}}