CVE-2014-125128: XSS

Published Sep 8, 2025
·
Updated

'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.

Affected Software

2 affected components
sanitize-html sanitize-html<1.0.3
apostrophecms Sanitize-html Node.js<1.0.3

Event History

Sep 8, 2025
CVE Published
via MITRE·10:09 AM
Data Sourced
via MITRE·10:09 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2014-125128?

CVE-2014-125128 is classified as a moderate severity vulnerability due to its potential to allow Cross-site Scripting (XSS) attacks.

2

How do I fix CVE-2014-125128?

To fix CVE-2014-125128, upgrade sanitize-html to version 1.0.3 or later, where the vulnerability is addressed.

3

What types of attacks can exploit CVE-2014-125128?

CVE-2014-125128 can be exploited to perform Cross-site Scripting (XSS) attacks by injecting malicious scripts through improperly sanitized hyperreference attributes.

4

Which versions of sanitize-html are affected by CVE-2014-125128?

Versions of sanitize-html prior to 1.0.3 are affected by CVE-2014-125128 and are vulnerable to XSS.

5

What is the root cause of CVE-2014-125128?

The root cause of CVE-2014-125128 is the inadequate validation of the hyperreference (`href`) attribute in anchor tags, especially regarding different casing, whitespace, and hexadecimal encoding.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203