CVE-2015-9236 json
Incorrect handling of CORS preflight request headers in hapi
published 2018-05-31 8 y ago modified 2026-06-17 4 mo ago also GHSA-vwrf-r5r4-7775 , EUVD-2018-0202
- cvss
- 5.3
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Exploit prediction
1.49% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | hapi | <11.0.0 |
11.0.0 |
Affected products
- HackerOne hapi node module
Classification
References
-
github.com
/hapijs/hapi/issues/2840
web, patch, third-party-advisory
-
github.com
/hapijs/hapi/issues/2850
web, release-notes, third-party-advisory
-
nodesecurity.io
/advisories/45
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2015-9236
advisory
-
github.com
/advisories/GHSA-vwrf-r5r4-7775
advisory
-
npmjs.com
/advisories/45
web
Sources
- CVE List CVE-2015-9236
- GitHub Advisory GHSA-vwrf-r5r4-7775
- NVD CVE-2015-9236
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.