CVE-2015-9243: Hapi Unsafe Merging Of CORS Configuration Vulnerability

MODERATE
Advisory Identifier: GHSA-j3g2-m5jj-6336
CWE-284
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2015-9243
GHSA Identifier GHSA-j3g2-m5jj-6336
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-284: Improper Access Control
Affected Product Hapi
Package Ecosystem npm
Published Date
Last Updated

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.

hapi fixed: 11.1.4
npm install hapi@11.1.4
Verify Direct and Transitive Dependencies

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

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. ## Recommendation Update hapi to version 11.1.4 or later.

CVE-2015-9243 Affected Hapi Versions

1 component(s)
Fixed Versions:
11.1.4
Product / Package Ecosystem Affected Versions Fixed Version
hapi
npm
< 11.1.4
11.1.4

References

Frequently Asked Questions

What is CVE-2015-9243?
CVE-2015-9243 is a security vulnerability in Hapi involving Unsafe Merging of CORS Configuration Conflict in hapi under CWE-284: Improper Access Control.
Which Hapi versions are affected?
Affected versions include releases prior to 11.1.4 across affected packages: hapi.
What version fixes CVE-2015-9243?
Upgrading to 11.1.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hapi affected?
Yes, hapi is affected in releases prior to 11.1.4. Upgrade your dependency to 11.1.4 or later.
What CWE is associated with CVE-2015-9243?
CVE-2015-9243 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check npm dependencies for CVE-2015-9243?
Run the dependency tree command: 'npm ls hapi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}