CVE-2023-41049
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.46% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-vp4f-wxgw-7x8x

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.

Affected

Product or packageVersionsReported by
decentraland single-sign-on-client< 0.1.0CVE List
@dcl/single-sign-on-client (npm)before 0.1.0GitHub Advisory Database
decentraland single_sign_on_clientbefore 0.1.0NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

@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.

GitHub Advisory Database
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

NVD (es)

@dcl/single-sign-on-client es una biblioteca npm de código abierto que gestiona los flujos de autenticación de inicio de sesión único. Una validación de entrada incorrecta en la función 'init' permite la ejecución de javascript arbitrario utilizando el prefijo 'javascript:'. Esta vulnerabilidad ha sido parcheada en la versión '0.1.0'. Se aconseja a los usuarios que actualicen. Los usuarios que no puedan actualizar deberían limitar la entrada de usuario no confiable a la función 'init'.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-41049 changed 2024-10-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-vp4f-wxgw-7x8x changed 2026-09-10CC-BY-4.0
NVDCVE-2023-41049 changed 2026-06-17Public domain