{"id":"CVE-2015-9236","published":"2018-05-31T20:00:00Z","modified":"2024-09-17T04:15:13Z","title":"Hapi versions less than 11.0.0 implement CORS incorrectly and allowed for configurations that at best returned…","vendor":"HackerOne","product":"hapi node module","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01488,"percentile":0.74691,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://github.com/hapijs/hapi/issues/2850","tags":["x_refsource_MISC"]},{"url":"https://github.com/hapijs/hapi/issues/2840","tags":["x_refsource_MISC"]},{"url":"https://nodesecurity.io/advisories/45","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":14.94}]},"vendorSlug":"hackerone","affectedVersions":[{"vendor":"HackerOne","product":"hapi node module","versions":["<11.0.0"]}],"affected":[{"ecosystem":"npm","package":"hapi","vulnerableRanges":["<11.0.0"],"patched":["11.0.0"],"from":["GHSA-vwrf-r5r4-7775"],"provenance":"source"}],"summary":{"text":"The hapi Node.js module, versions below 11.0.0, implements CORS incorrectly, so routes that should have CORS disabled can still be reached cross-origin. The flaw is in how hapi handles CORS when it is enabled on the connection but disabled on an individual non-GET route: the OPTIONS preflight returns the default CORS headers while the actual request proceeds and returns no CORS headers, defeating the route-level restriction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:42Z"},"euvd":{"id":"EUVD-2018-0202","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2014-3742","published":"2014-05-16","fixed":"2.2.0","kev":false},{"cve":"CVE-2014-4671","published":"2014-07-09","fixed":"6.1.0","kev":false},{"cve":"CVE-2015-9236","published":"2018-05-31","fixed":"11.0.0","kev":false},{"cve":"CVE-2015-9241","published":"2018-05-29","fixed":"11.1.3","kev":false,"link":{"from":"CVE-2015-9236","to":"CVE-2015-9241","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:hapi","fromFixed":"11.0.0","toFixed":"11.1.3","daysApart":-2}]}},{"cve":"CVE-2015-9243","published":"2018-05-29","fixed":"11.1.4","kev":false},{"cve":"CVE-2017-16013","published":"2018-06-04","fixed":"16.1.1","kev":false}],"package":"npm:hapi"}}