Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. lazysizes
  4. ›
  5. GMS-2020-745

GMS-2020-745: Cross-Site Scripting in lazysizes

September 3, 2020 (updated October 4, 2021)

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.

References

  • github.com/aFarkas/lazysizes/issues/764
  • github.com/advisories/GHSA-w4vp-3mq7-7v82
  • www.npmjs.com/advisories/1493

Code Behaviors & Features

Detect and mitigate GMS-2020-745 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 5.2.1-rc0

Fixed versions

  • 5.2.1-rc1

Solution

Upgrade to version 5.2.1-rc1 or above. *Note*: 5.2.1-rc1 may be an unstable version. Use caution.

Source file

npm/lazysizes/GMS-2020-745.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:40 +0000.