CVE-2015-9243
Description
A vulnerability in hapi before 11.1.4 allows less restrictive CORS defaults to override stricter restrictions when configs are combined across levels.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A vulnerability in hapi before 11.1.4 allows less restrictive CORS defaults to override stricter restrictions when configs are combined across levels.
Vulnerability
The hapi node module before version 11.1.4 mishandles the combination of Cross-Origin Resource Sharing (CORS) configurations defined at server, connection, and route levels. When a higher-level configuration (e.g., server or connection level) includes security restrictions such as a specific origin, and a lower-level route configuration is provided, the higher-level restrictions are overridden by the route's defaults (e.g., origin defaults to '*'). This affects all versions prior to 11.1.4. [1][2]
Exploitation
An attacker needs only the ability to make cross-origin requests to a hapi endpoint that uses combined CORS configurations. No authentication or special network position is required. The attacker can craft a request from any origin and, due to the override, the server may respond with access-control-allow-origin: * or another permissive header, even if a stricter origin was intended. [2]
Impact
Successful exploitation allows an attacker to bypass the intended CORS restrictions. This can result in unauthorized cross-origin data access, such as reading sensitive responses from the vulnerable endpoint, leading to information disclosure. The impact is at the application logic level, as the permissive CORS policy may allow malicious websites to interact with the API on behalf of a user. [1][2]
Mitigation
The fix was released in hapi version 11.1.4 on an unspecified date. Users should upgrade to 11.1.4 or later. No known workarounds are documented for earlier versions. This CVE is not listed in CISA's Known Exploited Vulnerabilities catalog. [1]
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
hapinpm | < 11.1.4 | 11.1.4 |
Affected products
2- Range: <11.1.4
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-j3g2-m5jj-6336ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2015-9243ghsaADVISORY
- github.com/hapijs/hapi/issues/2980ghsax_refsource_MISCWEB
- nodesecurity.io/advisories/65mitrex_refsource_MISC
- www.npmjs.com/advisories/65ghsaWEB
News mentions
0No linked articles in our index yet.