Potential for Script Injection in syntax-error
Versions of syntax-error prior to 1.1.1 are affected by a cross-site scripting vulnerability which may allow a malicious file to execute code when browserified.
Recommendation
Update to version 1.1.1 or later.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | syntax-error | < 1.1.1 | 1.1.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-7192
- https://github.com/substack/node-syntax-error/commit/9aa4e66eb90ec595d2dba55e6f9c2dd9a668b309
- https://exchange.xforce.ibmcloud.com/vulnerabilities/96728
- https://github.com/advisories/GHSA-5726-g6r9-5f22
- https://github.com/substack/node-browserify/blob/master/changelog.markdown#421
- https://github.com/substack/node-syntax-error
- https://www.npmjs.com/advisories/37
- http://www-01.ibm.com/support/docview.wss?uid=swg21690815
- Weakness (CWE)
CWE-94- Platform
- npm
- Package
syntax-error- Disclosed
- 24.10.2017
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-5726-g6r9-5f22 - CC BY 4.0
Vulnerability history: syntax-error
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.