Cross-site Scripting (XSS) Affecting openshift4/ose-console package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-OPENSHIFT4OSECONSOLE-15537379
  • published14 Mar 2026
  • disclosed3 Mar 2026

Introduced: 3 Mar 2026

CVE-2026-0540  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:7 openshift4/ose-console.

NVD Description

Note: Versions mentioned in the description apply only to the upstream openshift4/ose-console package and not the openshift4/ose-console package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1