GHSA-9pr3-7449-977r Cross-Site Scripting in express-cart

Not scored Published

Attackers with admin access can inject JavaScript into product options, leading to arbitrary code execution in the admin interface.

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

What is GHSA-9pr3-7449-977r?

GHSA-9pr3-7449-977r is a cross-site scripting vulnerability in express-cart, published on 2 Sep 2020. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

All versions of harp are vulnerable to Cross-Site Scripting. In the admin page it is possible to inject arbitrary JavaScript as a new product option, allowing attackers to execute arbitrary code. This is limited to the admin page and does not affect other pages.

Recommendation

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

Which versions are affected by GHSA-9pr3-7449-977r?

2 open source packages ship an affected version, including express-cart.

PackageAffectedFixed in
express-cart npmAll versionsNone
express-cart npmAll versionsNone

How do I fix GHSA-9pr3-7449-977r?

No fix has been published for GHSA-9pr3-7449-977r 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-9pr3-7449-977r being exploited?

There is no known exploitation of GHSA-9pr3-7449-977r in the wild and no public exploit code.

Sources

Is GHSA-9pr3-7449-977r in your software?

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

Check your SBOMs for free