Cross-Site Scripting in lazysizes
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | lazysizes (npm) | before 5.2.1-rc1 | 5.2.1-rc1 | Patch available | GHSA-w4vp-3mq7-7v82 |
- lazysizes (npm) Vendor— Affected before 5.2.1-rc1 Fixed in 5.2.1-rc1 Patch available GHSA-w4vp-3mq7-7v82
Remediation
- Fix · GHSA-w4vp-3mq7-7v82 lazysizes (npm) Fixed in 5.2.1-rc1 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-w4vp-3mq7-7v82
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences