GitHub Advisoryadvisory · npm

GHSA-2ggq-vfcp-gwhj Cross-Site Scripting in @hapi/boom

MEDIUM Published 2020-09-04 Modified 2023-10-02 Official page ↗
Ecosystem
npm
Packages
@hapi/boom
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Weaknesses
CWE-79
Reviewed
2020-08-31

Affected packages

• npm @hapi/boom: < 0.3.8 → fixed in 0.3.8

Description

Versions of `@hapi/boom` prior to 0.3.8 are vulnerable to Cross-Site Scripting (XSS). The package fails to properly escape error messages, which may allow attackers to execute arbitrary JavaScript in a victim's browser. Recommendation Upgrade to version 0.3.8 or later.

Related

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References