GHSA-hg2p-2cvq-4ppv

Suggest an improvement
Source
https://github.com/advisories/GHSA-hg2p-2cvq-4ppv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-hg2p-2cvq-4ppv/GHSA-hg2p-2cvq-4ppv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hg2p-2cvq-4ppv
Aliases
Published
2021-12-10T20:06:23Z
Modified
2025-01-14T08:57:08.370269Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Cross-site scripting in lazysizes
Details

lazysizes through 5.2.0 allows execution of malicious JavaScript. The following attributes are not sanitized by the video-embed plugin: data-vimeo, data-vimeoparams, data-youtube and data-ytparams which can be abused to inject malicious JavaScript.

Database specific
{
    "nvd_published_at": "2020-04-22T16:15:00Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-05-25T20:08:07Z"
}
References

Affected packages

npm / lazysizes

Package

Affected ranges

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

Database specific

{
    "last_known_affected_version_range": "<= 5.2.0"
}