{"id":"CVE-2015-9243","aliases":["EUVD-2020-1119","GHSA-j3g2-m5jj-6336"],"status":"published","title":"Unsafe Merging of CORS Configuration Conflict in hapi","description":"When server level, connection level or route level CORS configurations in hapi node module before 11.1.4 are combined and when a higher level config included security restrictions (like origin), a higher level config that included security restrictions (like origin) would have those restrictions overridden by less restrictive defaults (e.g. origin defaults to all origins `*`).","severity":{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01003,"percentile":0.63164,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-254","CWE-284"],"published":"2018-05-29T20:00:00Z","modified":"2026-06-17T00:36:07Z","fixes":[{"ecosystem":"npm","package":"hapi","fixed_in":["11.1.4"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"hapi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"11.1.4"}]}]},{"source":"osv","ecosystem":"npm","package":"hapi","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"11.1.4"}]}]}],"products":[{"vendor":"hackerone","product":"hapi node module"},{"vendor":"hapijs","product":"hapi"}],"references":[{"url":"https://github.com/hapijs/hapi/issues/2980","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","web"]},{"url":"https://nodesecurity.io/advisories/65","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://www.npmjs.com/advisories/65","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-9243","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-j3g2-m5jj-6336"}],"sources":{"cve":[{"id":"CVE-2015-9243","description":"When server level, connection level or route level CORS configurations in hapi node module before 11.1.4 are combined and when a higher level config included security restrictions (like origin), a higher level config that included security restrictions (like origin) would have those restrictions overridden by less restrictive defaults (e.g. origin defaults to all origins `*`).","status":"published","published":"2018-05-29T20:00:00Z","modified":"2024-09-17T02:27:19.677Z","cwes":["CWE-284"],"updated_at":"2026-11-02T14:35:40.591596Z"}],"euvd":[{"id":"EUVD-2020-1119","description":"When server level, connection level or route level CORS configurations in hapi node module before 11.1.4 are combined and when a higher level config included security restrictions (like origin), a higher level config that included security restrictions (like origin) would have those restrictions overridden by less restrictive defaults (e.g. origin defaults to all origins `*`).","status":"published","published":"2018-05-29T20:00:00Z","modified":"2024-09-17T02:27:19Z","updated_at":"2026-11-03T00:28:40.410394Z"}],"ghsa":[{"id":"GHSA-j3g2-m5jj-6336","title":"Unsafe Merging of CORS Configuration Conflict in hapi","description":"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.","status":"published","published":"2020-09-01T15:20:00Z","modified":"2023-01-09T05:03:33Z","cwes":["CWE-284"],"updated_at":"2026-11-02T14:36:05.705235Z"}],"nvd":[{"id":"CVE-2015-9243","description":"When server level, connection level or route level CORS configurations in hapi node module before 11.1.4 are combined and when a higher level config included security restrictions (like origin), a higher level config that included security restrictions (like origin) would have those restrictions overridden by less restrictive defaults (e.g. origin defaults to all origins `*`).","status":"published","published":"2018-05-29T20:29:00.547Z","modified":"2026-06-17T00:36:07.4Z","cvss":[{"version":"3.0","score":5.9,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-284","CWE-254"],"updated_at":"2026-11-02T14:03:19.244941Z"}],"osv":[{"id":"GHSA-j3g2-m5jj-6336","title":"Unsafe Merging of CORS Configuration Conflict in hapi","description":"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.","status":"published","published":"2020-09-01T15:20:00Z","modified":"2023-11-08T03:58:04.557Z","cwes":["CWE-284"],"updated_at":"2026-11-02T15:46:49.977351Z"}]}}
