GHSA-hv4w-jhcj-6wfw Cross-Site Scripting in snekserve

Not scored Published

Attackers can execute arbitrary JavaScript in victims' browsers via malicious filenames in snekserve, requiring user interaction to trigger.

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-hv4w-jhcj-6wfw?

GHSA-hv4w-jhcj-6wfw is a cross-site scripting vulnerability in snekserve, published on 3 Sep 2020. 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 versions of snekserve are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize filenames, allowing attackers to execute arbitrary JavaScript in the victim's browser through files with names containing malicious code.

Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

Which versions are affected by GHSA-hv4w-jhcj-6wfw?

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

PackageAffectedFixed in
snekserve npmFrom 0.0.0None
snekserve npmFrom 0.0.0None

How do I fix GHSA-hv4w-jhcj-6wfw?

No fix has been published for GHSA-hv4w-jhcj-6wfw 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-hv4w-jhcj-6wfw being exploited?

There is no known exploitation of GHSA-hv4w-jhcj-6wfw in the wild and no public exploit code.

Sources

Is GHSA-hv4w-jhcj-6wfw in your software?

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

Check your SBOMs for free