{"id":"GHSA-87mg-h5r3-hw88","aliases":["GHSA-87mg-h5r3-hw88"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in bootbox","summary":"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.\n\n\n## Recommendation\n\nSanitize user input being passed to `bootbox` or consider using an alternative package.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\n\n## Recommendation\n\nSanitize user input being passed to `bootbox` or consider using an alternative package.","format":"markdown","source":"ghsa"}],"published":"2019-05-30T17:23:28.000Z","modified":"2021-09-16T21:01:13.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-64","CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"5.5.2"}],"ecosystem":"npm","package":"bootbox","purl":"pkg:npm/bootbox","source":"ghsa"}],"references":[{"url":"https://github.com/makeusabrew/bootbox/issues/661","tags":["web"],"sources":["ghsa"]},{"url":"https://hackerone.com/reports/508446","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/makeusabrew/bootbox","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/882","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-87mg-h5r3-hw88","url":"https://github.com/advisories/GHSA-87mg-h5r3-hw88","licence":"CC-BY-4.0","modified":"2021-09-16T21:01:13.000Z"}],"updatedAt":"2026-11-25T22:56:44.682Z"}