CVE-2014-125128
BaseFortify
Publication date: 2025-09-08
Last updated on: 2025-09-19
Assigner: Checkmarx
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| apostrophecms | sanitize-html | to 1.0.3 (exc) |
Helpful Resources
Exploitability
| 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]