Description
When server level, connection level or route level CORS configurations in hapi node module before 11.1.4 are combined and when a higher level config included security restrictions (like origin), a higher level config that included security restrictions (like origin) would have those restrictions overridden by less restrictive defaults (e.g. origin defaults to all origins `*`).
Remediation
References
https://github.com/hapijs/hapi/issues/2980
https://nodesecurity.io/advisories/65
Related Vulnerabilities
CVE-2022-31160 Vulnerability in maven package org.webjars:jquery-ui
CVE-2023-31580 Vulnerability in maven package com.networknt:light-oauth2
CVE-2023-29518 Vulnerability in maven package org.xwiki.platform:xwiki-platform-invitation-ui
CVE-2015-8858 Vulnerability in maven package org.webjars.npm:uglify-js
CVE-2021-21661 Vulnerability in maven package org.jenkins-ci.plugins:kubernetes-cli