title: Recipes - Stored XSS in Add to Cart
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.
problem types: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
affected:
{
product: recipes
vendor: recipes
versions:
lessThan: unspecified, status: affected, version: 1.0.5, versionType: custom
lessThanOrEqual: 1.2.5, status: affected, version: unspecified, versionType: custom
}
metrics:
other: [
content: {'attackComplexity': 'LOW', 'attackVector': 'NETWORK', 'availabilityImpact': 'NONE', 'baseScore': 5.4, 'baseSeverity': 'MEDIUM', 'confidentialityImpact': 'LOW', 'integrityImpact': 'LOW', 'privilegesRequired': 'LOW', 'scope': 'CHANGED', 'userInteraction': 'REQUIRED', 'vectorString': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N', 'version': 3.1}
type: unknown
]
solutions: Update version to 1.2.6 or later