CVE-2014-7192: Potential for Script Injection in syntax-error
10
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.97386%
CWE
Published
10/24/2017
Updated
1/9/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
AV:N/AC:L/Au:N/C:C/I:C/A:C
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
syntax-error | npm | < 1.1.1 | 1.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from using Function()
to validate()
syntax. The commit diff shows replacement of 'Function(src)' with a safer eval pattern that throws before execution. Function()
execution in older versions allowed immediate code execution through IIFE patterns in input files. The CWE-94 classification confirms this is a code injection vulnerability directly related to improper input validation
in code generation.