CVE-2014-125128 Cross-site scripting in apostrophecms:sanitize-html
An attacker can execute arbitrary scripts by bypassing href validation in the sanitize-html library, potentially compromising user sessions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2014-125128?
CVE-2014-125128 is a medium-severity cross-site scripting vulnerability in apostrophecms:sanitize-html, published on 8 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2014-125128?
It affects 1 product.
Products include Apostrophecms Sanitize-Html.
How do I fix CVE-2014-125128?
No fix has been published for CVE-2014-125128 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2014-125128 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2014-125128 exists.
Other vulnerabilities in apostrophecms:sanitize-html
- CVE-2019-25225 sanitize-html is vulnerable to XSS through incomprehensive sanitization
- CVE-2016-1000237 Cross-Site Scripting in sanitize-html
- CVE-2024-21501 sanitize-html Information Exposure vulnerability
- CVE-2022-25887 Regular Expression Denial of Service (ReDoS)
- CVE-2021-26539 Improper Input Validation in sanitize-html
Sources
Also known as GHSA-389w-f784-rjg3, UBUNTU-CVE-2014-125128.