MediumGHSA-j3g2-m5jj-6336CVE-2015-9243

Unsafe Merging of CORS Configuration Conflict in hapi

Published 1 Sept 2020 · Updated 8 Nov 2023

Affected package

hapinpm
Affected
<11.1.4
Fixed in
11.1.4
Update to the fixed version for your release line, for example:npm install hapi@11.1.4

Details

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.

Recommendation

Update hapi to version 11.1.4 or later.

Is GHSA-j3g2-m5jj-6336 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected hapi, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.