GHSA-w4vp-3mq7-7v82

Suggest an improvement
Source
https://github.com/advisories/GHSA-w4vp-3mq7-7v82
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-w4vp-3mq7-7v82/GHSA-w4vp-3mq7-7v82.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w4vp-3mq7-7v82
Published
2020-09-03T15:49:48Z
Modified
2020-08-31T19:01:17Z
Summary
Cross-Site Scripting in lazysizes
Details

Versions of lazysizes prior to 5.2.1-rc1 are vulnerable to Cross-Site Scripting. The video-embed plugin fails to sanitize the following attributes: data-vimeo, data-vimeoparams, data-youtube and data-ytparams. This allows attackers to execute arbitrary JavaScript in a victim's browser if the attacker has control over the vulnerable attributes.

Recommendation

Upgrade to version 5.2.1-rc1 or later.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-31T19:01:17Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / lazysizes

Package

Affected ranges

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

Database specific

last_known_affected_version_range
"<= 5.2.1-rc0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-w4vp-3mq7-7v82/GHSA-w4vp-3mq7-7v82.json"