# GHSA-2GGQ-VFCP-GWHJ: Cross-Site Scripting in @hapi/boom

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2020-09-04
- Modified: 2023-10-02

## Affected versions

- @hapi/boom (npm): 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.

## References

- https://github.com/hapijs/boom/commit/0f8640bdba65aec6e6799bfc16ff5753150bfcaf
- https://github.com/hapijs/boom
- https://snyk.io/vuln/SNYK-JS-HAPIBOOM-541183

Page: https://cve.now/GHSA-2GGQ-VFCP-GWHJ

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
