CVE-2015-9243: Hapi Unsafe Merging Of CORS Configuration Vulnerability
MODERATECVE-2015-9243 is a MODERATE unsafe merging of cors configuration vulnerability (CWE-284: Improper Access Control) affecting Hapi libraries in the npm ecosystem. The issue involves unsafe merging of cors configuration conflict in hapi. Remediation is available by upgrading affected packages to version 11.1.4.
CVE-2015-9243 at a Glance
How to Fix CVE-2015-9243
To remediate this vulnerability, upgrade all affected Hapi 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 hapi@11.1.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls hapi
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2015-9243, inspect your project dependencies using npm:
npm ls hapi
Analyze the terminal output to locate any version of Hapi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 11.1.4), your application is affected.
Note: The npm ls hapi 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Hapi, 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-2015-9243 Affected Hapi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
hapi
|
npm |
< 11.1.4
|
11.1.4
|
References
Frequently Asked Questions
What is CVE-2015-9243?
Which Hapi versions are affected?
What version fixes CVE-2015-9243?
Is hapi affected?
What CWE is associated with CVE-2015-9243?
How can I check npm dependencies for CVE-2015-9243?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j3g2-m5jj-6336",
"modified" : "2020-08-31T18:09:51Z",
"published" : "2020-09-01T15:20:00Z",
"aliases" : [ "CVE-2015-9243" ],
"summary" : "Unsafe Merging of CORS Configuration Conflict in hapi",
"details" : "Versions of `hapi` prior to 11.1.4 are affected by a vulnerability that causes route-level CORS configuration to override connection-level or server-level CORS defaults. This may result in a situation where CORS permissions are less restrictive than intended.\n\n\n\n\n## Recommendation\n\nUpdate hapi to version 11.1.4 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "hapi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "11.1.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-9243"
}, {
"type" : "WEB",
"url" : "https://github.com/hapijs/hapi/issues/2980"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/65"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:09:51Z",
"nvd_published_at" : null
}
}