Vulnerability library
Security checkFebruary 23, 2026

Prototype pollution in swiper - swiper

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmswiper

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

A prototype pollution vulnerability exists in the the npm package swiper (>=6.5.1, < 12.1.2). Despite a previous fix that attempted to mitigate prototype pollution by checking whether user input contained a forbidden key, it is still possible to pollute Object.prototype via a crafted input using Array.prototype.

Recommendation

Update the swiper package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 6.5.1, < 12.1.2
  • Patched version(s): 12.1.2

References

Could your website be exposed too?

SmartScanner can check your website for Prototype pollution in swiper - swiper and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 23, 2026