CVE-2014-125128
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-09-08

Last updated on: 2025-09-19

Assigner: Checkmarx

Description
'sanitize-html' prior to version 1.0.3 is vulnerable to Cross-site Scripting (XSS). The function 'naughtyHref' doesn't properly validate the hyperreference (`href`) attribute in anchor tags (`<a>`), allowing bypasses that contain different casings, whitespace characters, or hexadecimal encodings.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-09-08
Last Modified
2025-09-19
Generated
2026-05-27
AI Q&A
2025-09-08
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
apostrophecms sanitize-html to 1.0.3 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in the sanitize-html library prior to version 1.0.3, specifically in the function 'naughtyHref' that sanitizes the 'href' attribute in anchor (<a>) tags. The function fails to properly validate the URL scheme in the 'href' attribute because it only matches lowercase letters and does not decode HTML entities or handle whitespace characters. Attackers can exploit this by encoding 'javascript:' URLs using uppercase letters, whitespace, or HTML character references, allowing malicious JavaScript code to execute when users click on these sanitized links. This is a Cross-site Scripting (XSS) vulnerability. [1, 3]


How can this vulnerability impact me? :

This vulnerability can lead to Cross-site Scripting (XSS) attacks, where an attacker injects malicious JavaScript code into web pages viewed by other users. If exploited, it can allow attackers to execute arbitrary scripts in the context of the affected website, potentially stealing user data, hijacking user sessions, or performing actions on behalf of the user without their consent. This can compromise the security and integrity of your web application and its users. [1, 3]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart