GHSA-hg2p-2cvq-4ppv

    Dashboard / Vulnerabilities / GHSA-hg2p-2cvq-4ppv

    GHSA-hg2p-2cvq-4ppv

    Published: 10 Dec 2021Last Modified: 8 Jul 2026

    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.

    Affected packages

    Package

    Name: lazysizes

    Purl: pkg:npm/lazysizes

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -5.2.1

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-hg2p-2cvq-4ppv | CVE-DB