CVE-2021-23370 Prototype Pollution
High 7.5
Published
Updated
Check this codebase for CVE-2021-23370 and fix it if it is affected.
What it is: CVE-2021-23370 is a high-severity vulnerability in swiper, published on 12 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2021-23370 in the wild and no public exploit code.
Affected packages and fixed versions:
- swiper (npm): affected all versions; fixed in 6.5.1
- swiper (npm): affected all versions; fixed in 6.5.1
Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.
Reference: https://insights.sbomify.com/CVE-2021-23370/ (Markdown: https://insights.sbomify.com/CVE-2021-23370/index.md)
Prototype pollution in Swiper allows attackers to modify object prototypes, potentially leading to code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-23370?
CVE-2021-23370 is a high-severity vulnerability in swiper, published on 12 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects the package swiper before 6.5.1.
Which versions are affected by CVE-2021-23370?
2 open source packages ship an affected version, including swiper. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
swiper npm | All versions | 6.5.1 |
swiper npm | All versions | 6.5.1 |
Products include Swiperjs Swiper.
How do I fix CVE-2021-23370?
Upgrade swiper to 6.5.1 or later.
Is CVE-2021-23370 being exploited?
There is no known exploitation of CVE-2021-23370 in the wild and no public exploit code.
Other vulnerabilities in swiper
Sources
Also known as GHSA-p3hc-fv2j-rp68.