GHSA-4q2f-8g74-qm56 Cross-Site Scripting in takeapeek

Not scored Published

Attackers can execute arbitrary JavaScript in victims' browsers via malicious filenames, affecting users of the takeapeek npm package.

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-4q2f-8g74-qm56?

GHSA-4q2f-8g74-qm56 is a cross-site scripting vulnerability in takeapeek, 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 takeapeek 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-4q2f-8g74-qm56?

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

PackageAffectedFixed in
takeapeek npmFrom 0.0.0None
takeapeek npmFrom 0.0.0None

How do I fix GHSA-4q2f-8g74-qm56?

No fix has been published for GHSA-4q2f-8g74-qm56 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-4q2f-8g74-qm56 being exploited?

There is no known exploitation of GHSA-4q2f-8g74-qm56 in the wild and no public exploit code.

Sources

Is GHSA-4q2f-8g74-qm56 in your software?

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

Check your SBOMs for free