CVE-2023-41049
JavaScript vulnerability analysis and mitigation

Overview

@dcl/single-sign-on-client, an open source npm library for single sign-on authentication flows, was found to contain a vulnerability (CVE-2023-41049) related to improper input validation. The vulnerability was discovered and disclosed on August 31, 2023, affecting all versions prior to 0.1.0. The issue exists in the init function of the library, which fails to properly validate input, potentially allowing arbitrary JavaScript execution (GitHub Advisory).

Technical details

The vulnerability stems from improper input validation in the init function, which allows attackers to execute arbitrary JavaScript code using the javascript: prefix. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH), with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. The issue is classified as CWE-83 (Improper Neutralization of Script in Attributes) (GitHub Advisory).

Impact

If exploited, this vulnerability allows attackers to execute arbitrary JavaScript code in the context of the application using the library. This could lead to unauthorized access to sensitive information and potential compromise of the application's security (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.1.0 of the library. Users are strongly advised to upgrade to this version or later. For those unable to upgrade immediately, the vulnerability can be mitigated by ensuring proper sanitization of user input before passing it to the init function or by avoiding passing user input to the function altogether (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23947CRITICAL9.3
  • JavaScriptJavaScript
  • @orval/core
NoYesJan 20, 2026
CVE-2026-23950HIGH8.8
  • JavaScriptJavaScript
  • grafana-graphite
NoYesJan 20, 2026
CVE-2026-22037HIGH8.4
  • JavaScriptJavaScript
  • @fastify/express
NoYesJan 19, 2026
CVE-2026-23522LOW3.7
  • JavaScriptJavaScript
  • @lobehub/chat
NoNoJan 19, 2026
CVE-2025-66803LOW1.7
  • JavaScriptJavaScript
  • @hotwired/turbo
NoYesJan 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management