Vulnerabilities in pkg:npm/syntax-error
PACKAGECVE-2014-7192 is a HIGH potential for script injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Syntax error libraries in the npm ecosystem. The issue involves potential for script injection in syntax-error. Remediation is available by upgrading affected packages to version 1.1.1.
pkg:npm/syntax-error
Vulnerability advisories affecting package pkg:npm/syntax-error. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-5726-g6r9-5f22 | CVE-2014-7192 | HIGH | Potential for Script Injection in syntax-error |
CVE-2014-7192 at a Glance
How to Fix CVE-2014-7192
To remediate this vulnerability, upgrade all affected Syntax error dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install syntax-error@1.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls syntax-error
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2014-7192, inspect your project dependencies using npm:
npm ls syntax-error
Analyze the terminal output to locate any version of Syntax error in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), your application is affected.
Note: The npm ls syntax-error command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Syntax error, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2014-7192 Affected Syntax error Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
syntax-error
|
npm |
< 1.1.1
|
1.1.1
|
References
Frequently Asked Questions
What is CVE-2014-7192?
Which Syntax error versions are affected?
What version fixes CVE-2014-7192?
Is syntax-error affected?
What CWE is associated with CVE-2014-7192?
How can I check npm dependencies for CVE-2014-7192?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5726-g6r9-5f22",
"modified" : "2022-02-25T19:54:10Z",
"published" : "2017-10-24T18:33:36Z",
"aliases" : [ "CVE-2014-7192" ],
"summary" : "Potential for Script Injection in syntax-error",
"details" : "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. \n\n## Recommendation\n\nUpdate to version 1.1.1 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "syntax-error"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-7192"
}, {
"type" : "WEB",
"url" : "https://github.com/substack/node-syntax-error/commit/9aa4e66eb90ec595d2dba55e6f9c2dd9a668b309"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/96728"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-5726-g6r9-5f22"
}, {
"type" : "WEB",
"url" : "https://github.com/substack/node-browserify/blob/master/changelog.markdown#421"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/substack/node-syntax-error"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/37"
}, {
"type" : "WEB",
"url" : "http://www-01.ibm.com/support/docview.wss?uid=swg21690815"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:00:12Z",
"nvd_published_at" : null
}
}