{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"not yet assigned\"}"}}}], "affected": [{"vendor": "debian", "product": "node-dompurify", "platforms": ["bookworm", "trixie"], "defaultStatus": "affected"}, {"vendor": "debian", "product": "node-dompurify", "versions": [{"status": "affected", "version": "0", "lessThan": "3.3.2+dfsg-1", "versionType": "deb"}], "platforms": ["forky", "sid"], "defaultStatus": "unaffected"}], "references": [{"url": "https://security-tracker.debian.org/tracker/CVE-2026-0540"}], "descriptions": [{"lang": "en", "value": "DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 2726c74, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts."}], "providerMetadata": {"orgId": "79363d38-fa19-49d1-9214-5f28da3f3ac5", "shortName": "debian", "dateUpdated": "2026-03-03T17:26:06.621Z", "x_subShortName": "debian"}}, {"metrics": [{"cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "redhat", "product": "grafana", "platforms": ["cpe:/o:redhat:enterprise_linux:10"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-selinux", "platforms": ["cpe:/o:redhat:enterprise_linux:10"], "defaultStatus": "affected"}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2026-0540"}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2444135"}, {"url": "https://github.com/cure53/DOMPurify"}, {"url": "https://github.com/cure53/DOMPurify/commit/fca0a938b4261ddc9c0293a289935a9029c049f5"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-0540"}, {"url": "https://www.cve.org/CVERecord?id=CVE-2026-0540"}, {"url": "https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safeforxml"}], "descriptions": [{"lang": "en", "value": "A cross site scripting flaw has been discovered in the DOMPurify npm library. This flaw allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2026-03-03T17:26:06Z", "x_subShortName": "redhat_10"}}, {"metrics": [{"cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "redhat", "product": "grafana", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-azure-monitor", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-cloudwatch", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-elasticsearch", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-graphite", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-influxdb", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-loki", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-mssql", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-mysql", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-opentsdb", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-postgres", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-prometheus", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-selinux", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-stackdriver", "platforms": ["cpe:/o:redhat:enterprise_linux:8"], "defaultStatus": "affected"}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2026-0540"}], "descriptions": [{"lang": "en", "value": "A cross site scripting flaw has been discovered in the DOMPurify npm library. This flaw allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts. \n            A moderate cross-site scripting (XSS) flaw was found in DOMPurify, an HTML sanitization library shipped in multiple Red Hat products, including Red Hat 3scale API Management Platform, Red Hat Ansible Automation Platform, Red Hat AMQ, OpenShift Virtualization console plugins, Cluster Observability Operator, and Cryostat. The SAFE_FOR_XML regex in DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8 does not account for five rawtext elements (noscript, xmp, noembed, noframes, and iframe). An attacker can bypass attribute sanitization by placing payloads such as \"</noscript><img src=x onerror=alert(1)>\" inside attribute values; when the sanitized output is rendered inside one of these unprotected rawtext contexts, the injected markup is parsed as HTML and the attacker's JavaScript executes in the victim's browser. Exploitation requires an application to place DOMPurify-sanitized output inside such a rawtext element context and requires user interaction, which limits the attack surface. The Red Hat severity (Moderate, CVSS:3.1 6.1, AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) matches the upstream rating. Fixes for the affected Red Hat product streams are currently deferred; until a fixed DOMPurify is delivered, applications that render DOMPurify-sanitized content inside noscript, xmp, noembed, noframes, or iframe elements remain exposed to this sanitization bypass. For community-distributed components, handling is delegated to the community, which is pursuing fixes where affected.\n            Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2026-03-03T17:26:00Z", "x_subShortName": "redhat_8"}}, {"metrics": [{"cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "redhat", "product": "grafana", "platforms": ["cpe:/o:redhat:enterprise_linux:9"], "defaultStatus": "affected"}, {"vendor": "redhat", "product": "grafana-selinux", "platforms": ["cpe:/o:redhat:enterprise_linux:9"], "defaultStatus": "affected"}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2026-0540"}], "descriptions": [{"lang": "en", "value": "A cross site scripting flaw has been discovered in the DOMPurify npm library. This flaw allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts. \n            A moderate cross-site scripting (XSS) flaw was found in DOMPurify, an HTML sanitization library shipped in multiple Red Hat products, including Red Hat 3scale API Management Platform, Red Hat Ansible Automation Platform, Red Hat AMQ, OpenShift Virtualization console plugins, Cluster Observability Operator, and Cryostat. The SAFE_FOR_XML regex in DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8 does not account for five rawtext elements (noscript, xmp, noembed, noframes, and iframe). An attacker can bypass attribute sanitization by placing payloads such as \"</noscript><img src=x onerror=alert(1)>\" inside attribute values; when the sanitized output is rendered inside one of these unprotected rawtext contexts, the injected markup is parsed as HTML and the attacker's JavaScript executes in the victim's browser. Exploitation requires an application to place DOMPurify-sanitized output inside such a rawtext element context and requires user interaction, which limits the attack surface. The Red Hat severity (Moderate, CVSS:3.1 6.1, AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) matches the upstream rating. Fixes for the affected Red Hat product streams are currently deferred; until a fixed DOMPurify is delivered, applications that render DOMPurify-sanitized content inside noscript, xmp, noembed, noframes, or iframe elements remain exposed to this sanitization bypass. For community-distributed components, handling is delegated to the community, which is pursuing fixes where affected.\n            Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2026-03-03T17:26:00Z", "x_subShortName": "redhat_9"}}, {"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"low\"}"}}}], "affected": [{"vendor": "fedora", "product": "python-jupytext", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.19.1-4.fc42", "versionType": "rpm"}], "platforms": ["cpe:/o:fedoraproject:fedora:42"], "defaultStatus": "unaffected"}, {"vendor": "fedora", "product": "python-jupytext", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.19.1-4.fc43", "versionType": "rpm"}], "platforms": ["cpe:/o:fedoraproject:fedora:43"], "defaultStatus": "unaffected"}, {"vendor": "fedora", "product": "python-jupytext", "versions": [{"status": "affected", "version": "0", "lessThan": "0:1.19.1-4.fc44", "versionType": "rpm"}], "platforms": ["cpe:/o:fedoraproject:fedora:44"], "defaultStatus": "unaffected"}], "references": [{"url": "https://bodhi.fedoraproject.org/updates/FEDORA-2026-301cbbe347"}, {"url": "https://bodhi.fedoraproject.org/updates/FEDORA-2026-793b55138d"}, {"url": "https://bodhi.fedoraproject.org/updates/FEDORA-2026-85b819b928"}], "descriptions": [{"lang": "en", "value": "python-jupytext: DOMPurify: Cross-site scripting vulnerability"}], "providerMetadata": {"orgId": "92fb86c3-55a5-4fb5-9c3f-4757b9e96dc5", "shortName": "fedora", "dateUpdated": "2026-05-17T00:48:46Z", "x_subShortName": "fedora"}}, {"metrics": [{"cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}, {"cvssV4_0": {"version": "4.0", "baseScore": 5.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N", "userInteraction": "ACTIVE", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "subIntegrityImpact": "LOW", "vulnIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "LOW", "vulnConfidentialityImpact": "NONE"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"MODERATE\"}"}}}], "affected": [{"vendor": "npm", "product": "dompurify", "versions": [{"status": "affected", "version": "2.5.3", "lessThan": "2.5.9", "versionType": "semver"}, {"status": "affected", "version": "3.1.3", "lessThan": "3.3.2", "versionType": "semver"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://fluidattacks.com/advisories/daft"}, {"url": "https://github.com/cure53/DOMPurify"}, {"url": "https://github.com/cure53/DOMPurify/commit/302b51de22535cc90235472c52e3401bedd46f80"}, {"url": "https://github.com/cure53/DOMPurify/commit/fca0a938b4261ddc9c0293a289935a9029c049f5"}, {"url": "https://github.com/cure53/DOMPurify/releases/tag/3.3.2"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-0540"}, {"url": "https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safe-for-xml"}], "descriptions": [{"lang": "en", "value": "DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in 2.5.9 and 3.3.2, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the `SAFE_FOR_XML` regex. Attackers can include payloads like `</noscript><img src=x onerror=alert(1)>` in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts."}, {"lang": "en", "value": "DOMPurify contains a Cross-site Scripting vulnerability"}], "providerMetadata": {"orgId": "386269d4-a6c6-4eaa-bf8e-bc0b0d010558", "shortName": "npm", "dateUpdated": "2026-03-03T18:31:33Z", "x_subShortName": "npm"}}, {"metrics": [{"cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"medium\"}"}}}], "affected": [{"vendor": "canonical", "product": "node-dompurify", "platforms": ["jammy", "noble", "resolute"], "defaultStatus": "unknown"}], "references": [{"url": "https://ubuntu.com/security/CVE-2026-0540"}, {"url": "https://www.cve.org/CVERecord?id=CVE-2026-0540"}], "descriptions": [{"lang": "en", "value": "DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 729097f, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like &lt;/noscript&gt;&lt;img src=x onerror=alert(1)&gt; in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts."}], "providerMetadata": {"orgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc", "shortName": "canonical", "dateUpdated": "2026-03-03T18:16:00Z", "x_subShortName": "canonical"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}], "affected": [{"cpes": ["cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*"], "vendor": "cure53", "product": "dompurify", "versions": [{"status": "affected", "version": "2.5.3", "versionType": "custom", "lessThanOrEqual": "2.5.8"}, {"status": "affected", "version": "3.1.3", "versionType": "custom", "lessThanOrEqual": "3.3.1"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://github.com/cure53/DOMPurify", "tags": ["product"]}, {"url": "https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safe-for-xml", "tags": ["third-party-advisory"]}, {"url": "https://fluidattacks.com/advisories/daft"}, {"url": "https://github.com/cure53/DOMPurify/commit/302b51de22535cc90235472c52e3401bedd46f80"}, {"url": "https://github.com/cure53/DOMPurify/releases/tag/3.3.2"}], "descriptions": [{"lang": "en", "value": "DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 2726c74, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts."}, {"lang": "es", "value": "DOMPurify 3.1.3 a 3.3.1 y 2.5.3 a 2.5.8, corregido en la confirmación 729097f, contienen una vulnerabilidad de secuencias de comandos entre sitios que permite a los atacantes eludir la desinfección de atributos aprovechando cinco elementos de texto sin formato que faltan (noscript, xmp, noembed, noframes, iframe) en la expresión regular SAFE_FOR_XML. Los atacantes pueden incluir cargas útiles como  en los valores de los atributos para ejecutar JavaScript cuando la salida saneada se coloca dentro de estos contextos de texto sin formato desprotegidos."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-79", "description": "CWE-79"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2026-03-03T18:16:24Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2026-0540", "state": "PUBLISHED", "dateUpdated": "2026-03-25T16:16:10Z", "assignerOrgId": "84fe0718-d6bb-4716-a7e8-81a6d1daa869", "datePublished": "2026-03-03T18:16:24Z", "assignerShortName": "Fluid Attacks"}, "dataVersion": "5.0"}