# CVE-2022-21686: Server Side Twig Template Injection

Source: https://junglewise.ai/threats/cve-2022-21686-server-side-twig-template-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-01-27  
License: CC BY 4.0 with a link back

CVE-2022-21686 · Severity: low · CVSS 3.1 · Published 2022-01-27

Server Side Twig Template Injection

Technologies: [prestashop/prestashop (Packagist)](https://junglewise.ai/threats/technologies/prestashop-prestashop). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2022-21686 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-21686 being exploited in the wild.

**How severe is CVE-2022-21686?** Low severity, with a CVSS score of 3.1, published 27 January 2022.

**Which products and versions are affected?** prestashop/prestashop (Packagist) ECOSYSTEM:introduced=1.7.0.0,fixed=1.7.8.3.

**Is there a fix for CVE-2022-21686?** Yes. prestashop/prestashop (Packagist): upgrade to 1.7.8.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-21686?** Check whether you run prestashop/prestashop (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- prestashop/prestashop (Packagist): upgrade to 1.7.8.3 or later

  ```sh
  composer require prestashop/prestashop:^1.7.8.3
  ```


## Affected products

- prestashop/prestashop (Packagist) ECOSYSTEM:introduced=1.7.0.0,fixed=1.7.8.3

## Identifiers

- CVE-2022-21686
- GHSA-mrq4-7ch7-2465

## Related threats

- [PrestaShop stored XSS in Customer Service view via Contact Us form](https://junglewise.ai/threats/cve-2026-44212-prestashop-stored-xss-in-customer-service-view-via-contact-us)
- [PrestaShop has multiple stored XSS vulnerabilities via unprotected Template variables](https://junglewise.ai/threats/cve-2026-33673-prestashop-has-multiple-stored-xss-vulnerabilities-via)
- [PrestaShop: Improper Use of Validation Framework](https://junglewise.ai/threats/cve-2026-33674-prestashop-improper-use-of-validation-framework)
- [PrestaShop affected by time based enumeration in FO login form](https://junglewise.ai/threats/cve-2026-25597-prestashop-affected-by-time-based-enumeration-in-fo-login-form)
- [Presta Shop vulnerable to email enumeration](https://junglewise.ai/threats/cve-2025-51586-presta-shop-vulnerable-to-email-enumeration)
