# GHSA-w4vp-3mq7-7v82: Cross-Site Scripting in lazysizes

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T15:49:48.000Z
- Modified: 2020-08-31T19:01:17.000Z
- Weaknesses: CWE-79

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- lazysizes (npm): before 5.2.1-rc1

## References

- <https://github.com/aFarkas/lazysizes/issues/764> (web)
- <https://www.npmjs.com/advisories/1493> (web)

## Sources

- GitHub Advisory Database: [GHSA-w4vp-3mq7-7v82](https://github.com/advisories/GHSA-w4vp-3mq7-7v82), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-w4vp-3mq7-7v82 · Whole record: https://cve.day/GHSA-w4vp-3mq7-7v82.json · Rebuilt by cve.day 2026-11-25T22:56:46.770Z
