Live threats

All CVEs / Hapijs

CVE-2015-9236Hapijs Hapi

Medium 5.3 No auth needed

Priority
47
CVSS 3.0
5.3
EPSS
1.5%
probability of exploitation in 30 days · percentile 74
Auth required
No
Published
May 31, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-284, CWE-200
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hapi.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm hapi < 11.0.0 11.0.0 npm install hapi@11.0.0

Per OSV / GitHub Advisories (GHSA-vwrf-r5r4-7775). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
hapijshapi< 11.0.0

Official sources

References

Links published by the sources. Open them with care.