Search

Find a vulnerability

Search criteria

    2 vulnerabilities by twig

    CVE-2026-46637 (GCVE-0-2026-46637)

    Vulnerability from nvd – Published: 2026-07-14 21:25 – Updated: 2026-07-16 15:05
    VLAI
    Title
    Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`
    Summary
    Twig is a template language for PHP. Prior to 3.26.0, several filters in twig/markdown-extra and twig/cssinliner-extra are registered with is_safe => [all], causing Twig to treat plain text or HTML output as safe in HTML, JavaScript, CSS, URL, and other contexts where the output is not properly escaped. This issue is fixed in version 3.26.0.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-07-16 15:05 UTC
    CWE
    • CWE-116 - Improper Encoding or Escaping of Output
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-46637",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-07-16T15:05:39.751817Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-07-16T15:05:57.087Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "Twig",
              "vendor": "twigphp",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 3.26.0"
                }
              ]
            },
            {
              "product": "cssinliner-extra",
              "vendor": "twig",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 3.26.0"
                }
              ]
            },
            {
              "product": "markdown-extra",
              "vendor": "twig",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 3.26.0"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Twig is a template language for PHP. Prior to 3.26.0, several filters in twig/markdown-extra and twig/cssinliner-extra are registered with is_safe =\u003e [all], causing Twig to treat plain text or HTML output as safe in HTML, JavaScript, CSS, URL, and other contexts where the output is not properly escaped. This issue is fixed in version 3.26.0."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 5.1,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "LOW",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "LOW",
                "subIntegrityImpact": "LOW",
                "userInteraction": "PASSIVE",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-116",
                  "description": "CWE-116: Improper Encoding or Escaping of Output",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-14T21:25:20.141Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3"
            },
            {
              "name": "https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299"
            },
            {
              "name": "https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a"
            },
            {
              "name": "https://github.com/twigphp/Twig/releases/tag/v3.26.0",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/twigphp/Twig/releases/tag/v3.26.0"
            }
          ],
          "source": {
            "advisory": "GHSA-jv8m-2544-3pg3",
            "discovery": "UNKNOWN"
          },
          "title": "Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe =\u003e [\u0027all\u0027]`"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-46637",
        "datePublished": "2026-07-14T21:25:20.141Z",
        "dateReserved": "2026-05-15T20:11:54.584Z",
        "dateUpdated": "2026-07-16T15:05:57.087Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-46637 (GCVE-0-2026-46637)

    Vulnerability from cvelistv5 – Published: 2026-07-14 21:25 – Updated: 2026-07-16 15:05
    VLAI
    Title
    Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`
    Summary
    Twig is a template language for PHP. Prior to 3.26.0, several filters in twig/markdown-extra and twig/cssinliner-extra are registered with is_safe => [all], causing Twig to treat plain text or HTML output as safe in HTML, JavaScript, CSS, URL, and other contexts where the output is not properly escaped. This issue is fixed in version 3.26.0.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-07-16 15:05 UTC
    CWE
    • CWE-116 - Improper Encoding or Escaping of Output
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-46637",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-07-16T15:05:39.751817Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-07-16T15:05:57.087Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "Twig",
              "vendor": "twigphp",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 3.26.0"
                }
              ]
            },
            {
              "product": "cssinliner-extra",
              "vendor": "twig",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 3.26.0"
                }
              ]
            },
            {
              "product": "markdown-extra",
              "vendor": "twig",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 3.26.0"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Twig is a template language for PHP. Prior to 3.26.0, several filters in twig/markdown-extra and twig/cssinliner-extra are registered with is_safe =\u003e [all], causing Twig to treat plain text or HTML output as safe in HTML, JavaScript, CSS, URL, and other contexts where the output is not properly escaped. This issue is fixed in version 3.26.0."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 5.1,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "LOW",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "LOW",
                "subIntegrityImpact": "LOW",
                "userInteraction": "PASSIVE",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-116",
                  "description": "CWE-116: Improper Encoding or Escaping of Output",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-14T21:25:20.141Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3"
            },
            {
              "name": "https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299"
            },
            {
              "name": "https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a"
            },
            {
              "name": "https://github.com/twigphp/Twig/releases/tag/v3.26.0",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/twigphp/Twig/releases/tag/v3.26.0"
            }
          ],
          "source": {
            "advisory": "GHSA-jv8m-2544-3pg3",
            "discovery": "UNKNOWN"
          },
          "title": "Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe =\u003e [\u0027all\u0027]`"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-46637",
        "datePublished": "2026-07-14T21:25:20.141Z",
        "dateReserved": "2026-05-15T20:11:54.584Z",
        "dateUpdated": "2026-07-16T15:05:57.087Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }