CVE-2015-9236 – hapi
Package
Manager: npm
Name: hapi
Vulnerable Version: >=0 <11.0.0
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:U/RL:O/RC:C
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS: 0.00248 pctl0.47945
Details
Incorrect handling of CORS preflight request headers in hapi Versions of `hapi` prior to 11.0.0 implement CORS incorrectly, allowing for configurations that at best return inconsistent headers, and at worst allow cross-origin activities that are 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. ## Recommendation Update to version 11.0.0 or later.
Metadata
Created: 2018-06-07T19:43:25Z
Modified: 2020-08-31T18:09:06Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/06/GHSA-vwrf-r5r4-7775/GHSA-vwrf-r5r4-7775.json
CWE IDs: ["CWE-284"]
Alternative ID: GHSA-vwrf-r5r4-7775
Finding: F039
Auto approve: 1