Incorrect CORS implementation in Hapi
HackerOne hapi node module
At a glance
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.
Source description · CVE List / CNA
System impact
CVSS summary v3.0
- Published:
- Updated:
- EPSS:
- 1.488%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Network
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:HackerOne | hapi node module | Affected versions: <11.0.0 |
| Vendor:hapijs | hapiEnvironments (1)
| Affected versions: < 11.0.0 |
| Vendor:npm | hapi | Affected versions: < 11.0.0 |
| Vendor:hapijs | hapi | Affected versions:< 11.0.0Show full version range for hapi
|
1–4 of 4 · Page 1 of 1
CVSS scores and metrics4
[email protected] · NVD (Primary)Primary5.3 / 10MediumCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:Nnvd · Wazuh CTI (cna)5.3 / 10MediumCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N[email protected] · NVD (Primary)5.0 / 10MediumCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:L/Au:N/C:P/I:N/A:Nnvd · Wazuh CTI (cna)5.0 / 10MediumCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:L/Au:N/C:P/I:N/A:NCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences