CVE-2014-9772
mediumpriority · track · 25EPSS 0.026 · 85 %ileEUUSEPSS · scored 2026-10-28
The validator package before 2.0.0 for Node.js allows remote attackers to bypass the cross-site scripting (XSS) filter via hex-encoded characters.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-79mx-88w7-8f7qXSS Filter Bypass via Encoded URL in validator2018-11-06ghsa · osvUS
Versions of `validator` prior to 2.0.0 contained an xss filter method that is affected by several filter bypasses. This may result in a cross-site scripting vulnerability. ## Proof of Concept The xss() function removes the word "javascript" when contained inside an attribute. However, it does not properly handle cases where characters have been hex-encoded. As a result, it is possible to build an input that bypasses the filter but which the browser will accept as valid JavaScript. For example: ```<a href="javascript:...">abc</a>``` will render as: ```<a href="javascript:...">abc</a>``` ## Recommendation The package author has decided to remove the xss filter functionality in the latest version of this module. If this feature is not currently being used, you are not affected by the vulnerability. If it is being used, updating to the latest version of the module will break your application. In order for affected users to mitigate this vulnerability, it is necessary to use an [alternative package](https://www.npmjs.com/search?q=xss%20filter&page=1&ranking=optimal) that provides similar functionality.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2016/04/20/11cnnvd
- https://nodesecurity.io/advisories/43cnnvd
- http://www.openwall.com/lists/oss-security/2016/04/20/11enisa_euvd
- http://www.securityfocus.com/bid/97102enisa_euvd
- https://nodesecurity.io/advisories/43enisa_euvd
- http://www.openwall.com/lists/oss-security/2016/04/20/11Mailing ListThird Party Advisorynvd
- http://www.securityfocus.com/bid/97102nvd
- https://nodesecurity.io/advisories/43ExploitMitigationVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan