GHSA-h9wr-xr4r-66fh Cross-Site Scripting in dmn-js-properties-panel

Not scored Published

Attackers can inject arbitrary JavaScript into embedding websites via specially configured diagrams in the dmn-js-properties-panel 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
Available

What is GHSA-h9wr-xr4r-66fh?

GHSA-h9wr-xr4r-66fh is a cross-site scripting vulnerability in dmn-js-properties-panel, 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

Versions of dmn-js-properties-panel prior to 0.8.0 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize input in specially configured diagrams, which may allow attackers to inject arbitrary JavaScript in the embedding website.

Recommendation

Upgrade to version 0.3.0 or later.

Which versions are affected by GHSA-h9wr-xr4r-66fh?

2 open source packages ship an affected version, including dmn-js-properties-panel.

PackageAffectedFixed in
dmn-js-properties-panel npmAll versions0.3.0
dmn-js-properties-panel npmAll versions0.3.0

How do I fix GHSA-h9wr-xr4r-66fh?

Upgrade dmn-js-properties-panel to 0.3.0 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-h9wr-xr4r-66fh being exploited?

There is no known exploitation of GHSA-h9wr-xr4r-66fh in the wild and no public exploit code.

Sources

Is GHSA-h9wr-xr4r-66fh in your software?

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

Check your SBOMs for free