GHSA-28hp-fgcr-2r4h Cross-Site Scripting via JSONP

Not scored Published

Attackers can execute arbitrary scripts in victim browsers by exploiting untrusted JSONP resource URLs in this npm 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-28hp-fgcr-2r4h?

GHSA-28hp-fgcr-2r4h is a cross-site scripting vulnerability in angular, published on 27 Jun 2019. 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

JSONP allows untrusted resource URLs, which provides a vector for attack by malicious actors.

Which versions are affected by GHSA-28hp-fgcr-2r4h?

2 open source packages ship an affected version, including angular.

PackageAffectedFixed in
angular npmAll versions1.6.0
angular npmAll versions1.6.0

How do I fix GHSA-28hp-fgcr-2r4h?

Upgrade angular to 1.6.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-28hp-fgcr-2r4h being exploited?

There is no known exploitation of GHSA-28hp-fgcr-2r4h in the wild and no public exploit code.

Sources

Is GHSA-28hp-fgcr-2r4h in your software?

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

Check your SBOMs for free