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

Not scored Published

Attackers can inject malicious scripts into bootbox dialogs due to lack of input sanitization, requiring user interaction to execute.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is GHSA-87mg-h5r3-hw88?

GHSA-87mg-h5r3-hw88 is a cross-site scripting vulnerability in bootbox, published on 30 May 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Which versions are affected by GHSA-87mg-h5r3-hw88?

2 open source packages ship an affected version, including bootbox.

PackageAffectedFixed in
bootbox npmAll versions to 5.5.2None
bootbox npmAll versions to 5.5.2None

How do I fix GHSA-87mg-h5r3-hw88?

No fix has been published for GHSA-87mg-h5r3-hw88 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is GHSA-87mg-h5r3-hw88 being exploited?

There is no known exploitation of GHSA-87mg-h5r3-hw88 in the wild and no public exploit code.

Sources

Is GHSA-87mg-h5r3-hw88 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free