Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-53606

Опубликовано: 12 июн. 2026
Источник: redhat
CVSS3: 5.4
EPSS Низкий

Описание

ApostropheCMS is an open-source Node.js content management system, and sanitize-html provides a simple HTML sanitizer with a clear API. Versions of sanitize-html prior to 2.17.5 use allowedSchemesAppliedToAttributes (default: ['href', 'src', 'cite']) to gate the naughtyHref() function that blocks dangerous URI schemes like javascript: and vbscript:. The HTML specification defines 10+ attributes that accept URIs (action, formaction, data, poster, background, ping, xlink:href, dynsrc, lowsrc), but none of these are included in the default gate list. When a developer allows any of these attributes in their configuration, javascript: URIs pass through completely unmodified, enabling XSS. Version 2.17.5 patches the issue.

A flaw was found in sanitize-html, an HTML sanitizer library. This vulnerability allows a remote attacker to perform Cross-Site Scripting (XSS) attacks. The issue occurs because the sanitizer does not properly validate dangerous URI schemes, such as javascript:, when they are used in certain HTML attributes like action or data. This oversight enables an attacker to inject malicious scripts into web pages, which can then be executed in the victim's browser.

Отчет

Moderate: A cross-site scripting (XSS) vulnerability in the sanitize-html library could allow remote attackers to execute arbitrary scripts. This flaw occurs when Red Hat products or applications explicitly configure sanitize-html to permit URI-accepting HTML attributes (e.g., action, data) that are not part of the default safe scheme validation list, thereby enabling the injection of malicious javascript: URIs.

Меры по смягчению последствий

If upgrading is not possible, add non standard attributes (including action, formaction, data, poster, and background) to your allowedSchemesAppliedToAttributes configuration so the URI scheme filter covers them. You can also remove them from allowedAttributes if your application does not need them.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Fix deferred
Network Observability Operatornetwork-observability/network-observability-console-plugin-rhel9Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-rhel9Fix deferred
Red Hat Developer Hubrhdh/rhdh-hub-rhel9Fix deferred
Red Hat Hardened Imagesopentelemetry-collectorUnder investigation
Red Hat Hardened Imagesopentelemetry-collector-contribUnder investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-mlflow-rhel9Fix deferred
Red Hat OpenShift Container Platform 4openshift3/ose-consoleFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-agent-installer-ui-rhel9Fix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-consoleFix deferred

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-79
https://bugzilla.redhat.com/show_bug.cgi?id=2488561apostrophecms sanitize-html: sanitize-html: Cross-Site Scripting (XSS) via insufficient URI scheme validation

EPSS

Процентиль: 3%
0.00136
Низкий

5.4 Medium

CVSS3

Связанные уязвимости

CVSS3: 5.4
nvd
около 2 месяцев назад

ApostropheCMS is an open-source Node.js content management system, and sanitize-html provides a simple HTML sanitizer with a clear API. Versions of sanitize-html prior to 2.17.5 use `allowedSchemesAppliedToAttributes` (default: `['href', 'src', 'cite']`) to gate the `naughtyHref()` function that blocks dangerous URI schemes like `javascript:` and `vbscript:`. The HTML specification defines 10+ attributes that accept URIs (`action`, `formaction`, `data`, `poster`, `background`, `ping`, `xlink:href`, `dynsrc`, `lowsrc`), but none of these are included in the default gate list. When a developer allows any of these attributes in their configuration, `javascript:` URIs pass through completely unmodified, enabling XSS. Version 2.17.5 patches the issue.

CVSS3: 5.4
github
4 дня назад

sanitize-html has incomplete URI scheme validation in that allows javascript: URIs through action, formaction, data, poster, and background attributes

EPSS

Процентиль: 3%
0.00136
Низкий

5.4 Medium

CVSS3