GHSA-r32x-jhw5-g48p Cross-Site Scripting in eco

Not scored Published

Attackers can execute arbitrary JavaScript in victims' browsers due to improper escaping of single quotes in the eco templating library.

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-r32x-jhw5-g48p?

GHSA-r32x-jhw5-g48p is a cross-site scripting vulnerability in eco, 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 eco are vulnerable to Cross-Site Scripting (XSS). The package's default __escape implementation fails to escape single quotes, which may allow attackers to execute arbitrary JavaScript on the victim's browser.

Recommendation

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

Which versions are affected by GHSA-r32x-jhw5-g48p?

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

PackageAffectedFixed in
eco npmFrom 0.0.0None
eco npmFrom 0.0.0None

How do I fix GHSA-r32x-jhw5-g48p?

No fix has been published for GHSA-r32x-jhw5-g48p 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-r32x-jhw5-g48p being exploited?

There is no known exploitation of GHSA-r32x-jhw5-g48p in the wild and no public exploit code.

Sources

Is GHSA-r32x-jhw5-g48p in your software?

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

Check your SBOMs for free