CVE-2014-7205: Bassmaster Arbitrary JavaScript Execution Vulnerability
CRITICALCVE-2014-7205 is a CRITICAL arbitrary javascript execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Bassmaster libraries in the npm ecosystem. The issue involves arbitrary javascript execution in bassmaster. Remediation is available by upgrading affected packages to version 1.5.2.
CVE-2014-7205 at a Glance
How to Fix CVE-2014-7205
To remediate this vulnerability, upgrade all affected Bassmaster 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 bassmaster@1.5.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls bassmaster
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2014-7205, inspect your project dependencies using npm:
npm ls bassmaster
Analyze the terminal output to locate any version of Bassmaster in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.2), your application is affected.
Note: The npm ls bassmaster 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 Bassmaster, 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-7205 Affected Bassmaster Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
bassmaster
|
npm |
< 1.5.2
|
1.5.2
|
References
Frequently Asked Questions
What is CVE-2014-7205?
Which Bassmaster versions are affected?
What version fixes CVE-2014-7205?
Is bassmaster affected?
What CWE is associated with CVE-2014-7205?
How can I check npm dependencies for CVE-2014-7205?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5j3g-jfq3-7jwx",
"modified" : "2021-09-01T22:16:02Z",
"published" : "2017-10-24T18:33:36Z",
"aliases" : [ "CVE-2014-7205" ],
"summary" : "Arbitrary JavaScript Execution in bassmaster",
"details" : "A vulnerability exists in bassmaster <= 1.5.1 that allows for an attacker to provide arbitrary JavaScript that is then executed server side via eval.\n\n\n## Recommendation\n\nUpdate to bassmaster version 1.5.2 or greater.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "bassmaster"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.5.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-7205"
}, {
"type" : "WEB",
"url" : "https://github.com/hapijs/bassmaster/commit/b751602d8cb7194ee62a61e085069679525138c4"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/96730"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-5j3g-jfq3-7jwx"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/hapijs/bassmaster"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/40689"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2014/09/30/10"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/70180"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:16:29Z",
"nvd_published_at" : null
}
}