GHSA-mg69-6j3m-jvgw HTML Injection in marky-markdown
Attackers can inject HTML via unsanitized style attributes in image tags, potentially altering rendered content appearance.
- 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-mg69-6j3m-jvgw?
GHSA-mg69-6j3m-jvgw is a cross-site scripting vulnerability in marky-markdown, 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 marky-markdown are vulnerable to HTML Injection. The package fails to sanitize style attributes in img tags of the markdown input. This may allow attackers to affect the size of images in the rendered HTML.
Recommendation
This package is no longer maintained. Please upgrade to @npmcorp/marky-markdown
Which versions are affected by GHSA-mg69-6j3m-jvgw?
2 open source packages ship an affected version, including marky-markdown.
| Package | Affected | Fixed in |
|---|---|---|
marky-markdown npm | From 0.0.0 | None |
marky-markdown npm | From 0.0.0 | None |
How do I fix GHSA-mg69-6j3m-jvgw?
No fix has been published for GHSA-mg69-6j3m-jvgw 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-mg69-6j3m-jvgw being exploited?
There is no known exploitation of GHSA-mg69-6j3m-jvgw in the wild and no public exploit code.