# GHSA-87mg-h5r3-hw88: Cross-Site Scripting in bootbox

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-05-30T17:23:28.000Z
- Modified: 2021-09-16T21:01:13.000Z
- Weaknesses: CWE-64, CWE-79

## Description

All version of `bootbox` are vulnerable to Cross-Site Scripting. The package does not sanitize user input in the provided dialog boxes, allowing attackers to inject HTML code and execute arbitrary JavaScript.


## Recommendation

Sanitize user input being passed to `bootbox` or consider using an alternative package.

(As written by GitHub Advisory Database.)

## Affected

- bootbox (npm): up to 5.5.2

## References

- <https://github.com/makeusabrew/bootbox/issues/661> (web)
- <https://hackerone.com/reports/508446> (web)
- <https://github.com/makeusabrew/bootbox> (package)
- <https://www.npmjs.com/advisories/882> (web)

## Sources

- GitHub Advisory Database: [GHSA-87mg-h5r3-hw88](https://github.com/advisories/GHSA-87mg-h5r3-hw88), CC-BY-4.0, modified 2021-09-16

---

Page: https://cve.day/GHSA-87mg-h5r3-hw88 · Whole record: https://cve.day/GHSA-87mg-h5r3-hw88.json · Rebuilt by cve.day 2026-11-25T22:56:44.682Z
