CVE-2023-23627

Sanitize vulnerable to Cross-site Scripting via Improper neutralization of `noscript` element

Description

Sanitize is an allowlist-based HTML and CSS sanitizer. Versions 5.0.0 and later, prior to 6.0.1, are vulnerable to Cross-site Scripting. When Sanitize is configured with a custom allowlist that allows `noscript` elements, attackers are able to include arbitrary HTML, resulting in XSS (cross-site scripting) or other undesired behavior when that HTML is rendered in a browser. The default configurations do not allow `noscript` elements and are not vulnerable. This issue only affects users who are using a custom config that adds `noscript` to the element allowlist. This issue has been patched in version 6.0.1. Users who are unable to upgrade can prevent this issue by using one of Sanitize's default configs or by ensuring that their custom config does not include `noscript` in the element allowlist.

Category

6.1
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.29%
Third-Party Advisory github.com
Affected: rgrove sanitize
Published at:
Updated at:

References

Link Tags
https://github.com/rgrove/sanitize/security/advisories/GHSA-fw3g-2h3j-qmm7 mitigation third party advisory release notes

Frequently Asked Questions

What is the severity of CVE-2023-23627?
CVE-2023-23627 has been scored as a medium severity vulnerability.
How to fix CVE-2023-23627?
To fix CVE-2023-23627, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-23627 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-23627 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-23627?
CVE-2023-23627 affects rgrove sanitize.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.