CVE-2023-41049 Improper Neutralization of Script in Attributes in @dcl/single-sign-on-client

High 7.5 Published Updated

Attackers can execute arbitrary JavaScript via the init function in the Decentraland single sign-on client library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-41049?

CVE-2023-41049 is a high-severity cross-site scripting vulnerability in decentraland single-sign-on-client, published on 1 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

@dcl/single-sign-on-client is an open source npm library which deals with single sign on authentication flows. Improper input validation in the `init` function allows arbitrary javascript to be executed using the `javascript:` prefix. This vulnerability has been patched on version `0.1.0`. Users are advised to upgrade. Users unable to upgrade should limit untrusted user input to the `init` function.

Weakness: CWE-79

Which versions are affected by CVE-2023-41049?

2 open source packages ship an affected version, including @dcl/single-sign-on-client. It affects 1 product.

PackageAffectedFixed in
@dcl/single-sign-on-client npmAll versions0.1.0
@dcl/single-sign-on-client npmAll versions0.1.0

Products include Decentraland Single Sign on Client.

How do I fix CVE-2023-41049?

Upgrade @dcl/single-sign-on-client to 0.1.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 CVE-2023-41049 being exploited?

There is no known exploitation of CVE-2023-41049 in the wild and no public exploit code.

Sources

Also known as GHSA-vp4f-wxgw-7x8x.

Is CVE-2023-41049 in your software?

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

Check your SBOMs for free