{"id":"GHSA-vp4f-wxgw-7x8x","summary":"Improper Neutralization of Script in Attributes in @dcl/single-sign-on-client","details":"### Impact\nImproper input validation in the `init` function allows arbitrary javascript to be executed using  the `javascript:` prefix\n\n```ts\n    SSO.init('javascript:alert(\"javascript successfully injected\")')\n```\n\n### Patches\n\nThis vulnerability was patched on version `0.1.0`\n\n### Workarounds\n\nThis vulnerability can be prevented if user input correctly sanitized or there is no user input pass to the `init` function\n","aliases":["CVE-2023-41049"],"modified":"2023-11-01T05:02:51.929618Z","published":"2023-09-04T16:36:27Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-09-04T16:36:27Z","nvd_published_at":"2023-09-01T20:15:07Z","cwe_ids":["CWE-79"],"severity":"HIGH"},"references":[{"type":"WEB","url":"https://github.com/decentraland/single-sign-on-client/security/advisories/GHSA-vp4f-wxgw-7x8x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-41049"},{"type":"WEB","url":"https://github.com/decentraland/single-sign-on-client/pull/2"},{"type":"WEB","url":"https://github.com/decentraland/single-sign-on-client/commit/bd20ea9533d0cda30809d929db85b1b76cef855a"},{"type":"PACKAGE","url":"https://github.com/decentraland/single-sign-on-client"}],"affected":[{"package":{"name":"@dcl/single-sign-on-client","ecosystem":"npm","purl":"pkg:npm/%40dcl/single-sign-on-client"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/09/GHSA-vp4f-wxgw-7x8x/GHSA-vp4f-wxgw-7x8x.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}