GHSA-vp4f-wxgw-7x8x

Suggest an improvement
Source
https://github.com/advisories/GHSA-vp4f-wxgw-7x8x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/09/GHSA-vp4f-wxgw-7x8x/GHSA-vp4f-wxgw-7x8x.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-vp4f-wxgw-7x8x
Aliases
Related
Published
2023-09-04T16:36:27Z
Modified
2023-11-01T05:02:51.929618Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Improper Neutralization of Script in Attributes in @dcl/single-sign-on-client
Details

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

Database specific
{
    "nvd_published_at": "2023-09-01T20:15:07Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-09-04T16:36:27Z"
}
References

Affected packages

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

Package

Name
@dcl/single-sign-on-client
View open source insights on deps.dev
Purl
pkg:npm/%40dcl/single-sign-on-client

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.1.0