CVE-2015-9236
MEDIUM 5.3CVSS 3.0Incorrect handling of CORS preflight request headers in hapi
Hapi versions less than 11.0.0 implement CORS incorrectly and allowed for configurations that at best returned inconsistent headers and at worst allowed cross-origin activities that were expected to be forbidden. If the connection has CORS enabled but one route has it off, and the route is not GET, the OPTIONS prefetch request will return the default CORS headers and then the actual request will go through and return no CORS headers. This defeats the purpose of turning CORS on the route.
- Published
- 31 May 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-200CWE-284
- Also known as
- GHSA-vwrf-r5r4-7775
- Sources
- NVDJSONOSV GHSA-vwrf-r5r4-7775JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hapijs | hapicpe:2.3:a:hapijs:hapi:*:*:*:*:*:node.js:*:* |
< 11.0.0 | 11.0.0 |
| OSV | npm | hapi | < 11.0.0 | 11.0.0 |
References
- https://github.com/hapijs/hapi/issues/2840 · Patch, Third Party Advisory, WEB
- https://github.com/hapijs/hapi/issues/2850 · Release Notes, Third Party Advisory, WEB
- https://nodesecurity.io/advisories/45 · Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2015-9236 · ADVISORY
- https://github.com/advisories/GHSA-vwrf-r5r4-7775 · ADVISORY
- https://www.npmjs.com/advisories/45 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 31 May 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Jun 2018)