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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-04T17:33:53.000Z
- Modified: 2023-10-02T18:43:16.000Z
- Weaknesses: CWE-79

## 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.

(As written by GitHub Advisory Database.)

## Affected

- @hapi/boom (npm): before 0.3.8

## References

- <https://github.com/hapijs/boom/commit/0f8640bdba65aec6e6799bfc16ff5753150bfcaf> (web)
- <https://github.com/hapijs/boom> (package)
- <https://snyk.io/vuln/SNYK-JS-HAPIBOOM-541183> (web)

## Sources

- GitHub Advisory Database: [GHSA-2ggq-vfcp-gwhj](https://github.com/advisories/GHSA-2ggq-vfcp-gwhj), CC-BY-4.0, modified 2023-10-02

---

Page: https://cve.day/GHSA-2ggq-vfcp-gwhj · Whole record: https://cve.day/GHSA-2ggq-vfcp-gwhj.json · Rebuilt by cve.day 2026-11-25T22:56:43.613Z
