Security mailing lists by PureSourceCode

CVE-2015-9236

MEDIUM 5.3CVSS 3.0

Incorrect handling of CORS preflight request headers in hapi

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.

Published
31 May 2018
Last modified
17 Jun 2026
Assigned by
support@hackerone.com
NVD status
Modified
Weakness
CWE-200CWE-284
Also known as
GHSA-vwrf-r5r4-7775
Sources
NVDJSONOSV GHSA-vwrf-r5r4-7775JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.0 MEDIUM 5.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD hapijs hapi
cpe:2.3:a:hapijs:hapi:*:*:*:*:*:node.js:*:*
< 11.0.0 11.0.0
OSV npm hapi < 11.0.0 11.0.0

References

History

  • 25 Nov 2026 20:21 UTC · NVD: first stored (published 31 May 2018)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Jun 2018)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.