GHSA-7jfh-2xc9-ccv7 Cross-Site Scripting in public
Stored cross-site scripting vulnerability in the public npm module allows attackers to inject malicious scripts, with no current fix available.
- Exploited in the wild
- Not known
- Login needed
- Not stated
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-7jfh-2xc9-ccv7?
GHSA-7jfh-2xc9-ccv7 is a cross-site scripting vulnerability in public, published on 31 May 2019. It can be exploited over the network, and only if a user opens a file or follows a link.
Official description
All versions of public are vulnerable to stored cross-site scripting (XSS).
Recommendation
No fix is currently available for this vulnerability. It is our recommendation to not install or use this module at this time.
Which versions are affected by GHSA-7jfh-2xc9-ccv7?
4 open source packages ship an affected version, including public.
| Package | Affected | Fixed in |
|---|---|---|
public npm | All versions | None |
public npm | All versions | None |
public npm | All versions | 0.1.4 |
public npm | All versions | 0.1.4 |
How do I fix GHSA-7jfh-2xc9-ccv7?
Upgrade public to 0.1.4 or later.
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-7jfh-2xc9-ccv7 being exploited?
There is no known exploitation of GHSA-7jfh-2xc9-ccv7 in the wild and no public exploit code.