Skip to content

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

High
2fd published GHSA-vp4f-wxgw-7x8x Aug 31, 2023

Package

npm @dcl/single-sign-on-client (npm)

Affected versions

<0.1.0

Patched versions

0.1.0

Description

Impact

Improper input validation in the init function allows arbitrary javascript to be executed using the javascript: prefix

    SSO.init('javascript:alert("javascript successfully injected")')

Patches

This vulnerability was patched on version 0.1.0

Workarounds

This vulnerability can be prevented if user input correctly sanitized or there is no user input pass to the init function

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CVE ID

CVE-2023-41049

Weaknesses