CVE-2014-125128 Cross-site scripting in apostrophecms:sanitize-html

Medium 6.1 Published Updated

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.

Sources

Also known as GHSA-389w-f784-rjg3, UBUNTU-CVE-2014-125128.

Is CVE-2014-125128 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free