GHSA-mg69-6j3m-jvgw HTML Injection in marky-markdown

Not scored Published

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.

PackageAffectedFixed in
marky-markdown npmFrom 0.0.0None
marky-markdown npmFrom 0.0.0None

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.

Sources

Is GHSA-mg69-6j3m-jvgw in your software?

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

Check your SBOMs for free