Skip to content
Heist/ feed
Back to feed
Critical

Server Side Twig Template Injection in PrestaShop

Type: advisorySources: OSV

PrestaShop is an Open Source e-commerce platform. Starting with version 1.7.0.0 and ending with version 1.7.8.3, an attacker is able to inject twig code inside the back office when using the legacy layout. The problem is fixed in version 1.7.8.3. There are no known workarounds.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-21686
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 10:17 UTC · Revision 1

Source evidence

Server Side Twig Template Injection in PrestaShop

core-osv · Original source

Published 26 Jan 2022, 20:10 UTC

PrestaShop is an Open Source e-commerce platform. Starting with version 1.7.0.0 and ending with version 1.7.8.3, an attacker is able to inject twig code inside the back office when using the legacy layout. The problem is fixed in version 1.7.8.3. There are no known workarounds.

osv:CVE-2022-21686
Complete source record
{
  "id": "1797b4d52cfdfbef238bbc299f1cfe95d4f70897c6cb5b8cbfcadd33cafb1053",
  "url": "https://osv.dev/vulnerability/CVE-2022-21686",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Server Side Twig Template Injection in PrestaShop",
    "summary": "PrestaShop is an Open Source e-commerce platform. Starting with version 1.7.0.0 and ending with version 1.7.8.3, an attacker is able to inject twig code inside the back office when using the legacy layout. The problem is fixed in version 1.7.8.3. There are no known workarounds.",
    "evidence": "osv:CVE-2022-21686",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-21686",
      "aliases": [
        "CVE-2022-21686",
        "GHSA-mrq4-7ch7-2465"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/prestashop/prestashop",
              "type": "GIT",
              "events": [
                {
                  "introduced": "98b71c095314dce895b4f654262bb3fc2566a868"
                },
                {
                  "fixed": "d02b469ec365822e6a9f017e57f588966248bf21"
                },
                {
                  "fixed": "ba62df151cac603269c73b2edb6b6c82a7d8c557"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:prestashop:prestashop:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.7.0.0"
                      },
                      {
                        "last_affected": "1.7.8.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d02b469ec365822e6a9f017e57f588966248bf21"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ba62df151cac603269c73b2edb6b6c82a7d8c557"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "1.7.8.3"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21686.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.665844708Z",
      "provider": "osv",
      "references": [
        "https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.3",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21686.json",
        "https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-mrq4-7ch7-2465",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-21686",
        "https://github.com/PrestaShop/PrestaShop/commit/d02b469ec365822e6a9f017e57f588966248bf21"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-94"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21686.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-21686",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494442,
  "published_at": "2022-01-26T20:10:10+00:00"
}