Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    BREW-ADR-VIEWER-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-11-18 10:26 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "adr-viewer",
            "purl": "pkg:brew/adr-viewer"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "1.3.0"
                },
                {
                  "fixed": "1.4.0_3"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-adr-viewer-CVE-2025-27516",
      "modified": "2026-11-18T10:26:15Z",
      "published": "2026-08-13T16:35:11Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-AIDER-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-11-18 09:44 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "aider",
            "purl": "pkg:brew/aider"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0.47.1"
                },
                {
                  "fixed": "0.76.2"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-aider-CVE-2025-27516",
      "modified": "2026-11-18T09:44:51Z",
      "published": "2026-08-13T16:35:12Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-ANSIBLE-CREATOR-CVE… (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-11-18 08:39 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "ansible-creator",
            "purl": "pkg:brew/ansible-creator"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "24.5.0"
                },
                {
                  "fixed": "25.0.0_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-ansible-creator-CVE-2025-27516",
      "modified": "2026-11-18T08:39:46Z",
      "published": "2026-08-13T16:35:16Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-ANSIBLE-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-11-18 08:40 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "ansible",
            "purl": "pkg:brew/ansible"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "1.2.2"
                },
                {
                  "fixed": "9.0.1"
                },
                {
                  "introduced": "9.2.0"
                },
                {
                  "fixed": "11.3.0_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-ansible-CVE-2025-27516",
      "modified": "2026-11-18T08:40:49Z",
      "published": "2026-08-13T16:35:22Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-ANSIBLE-LINT-CVE-20… (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-11-18 08:38 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "ansible-lint",
            "purl": "pkg:brew/ansible-lint"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "3.4.12"
                },
                {
                  "fixed": "5.0.4"
                },
                {
                  "introduced": "6.0.2"
                },
                {
                  "fixed": "6.6.1"
                },
                {
                  "introduced": "24.2.1"
                },
                {
                  "fixed": "25.1.3_2"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-ansible-lint-CVE-2025-27516",
      "modified": "2026-11-18T08:38:31Z",
      "published": "2026-08-13T16:35:16Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-ANSIBLE@10-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-11-18 09:17 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "ansible@10",
            "purl": "pkg:brew/ansible%4010"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "10.6.0"
                },
                {
                  "fixed": "10.7.0_2"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-ansible@10-CVE-2025-27516",
      "modified": "2026-11-18T09:17:23Z",
      "published": "2026-08-13T16:35:22Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-ANSIBLE@9-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-11-18 08:41 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "ansible@9",
            "purl": "pkg:brew/ansible%409"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "9.6.0"
                },
                {
                  "fixed": "9.13.0_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-ansible@9-CVE-2025-27516",
      "modified": "2026-11-18T08:41:13Z",
      "published": "2026-08-13T16:35:23Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-AWS-SAM-CLI-CVE-202… (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:37 – Updated: 2026-11-18 10:29 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "aws-sam-cli",
            "purl": "pkg:brew/aws-sam-cli"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "1.70.0"
                },
                {
                  "fixed": "1.104.0"
                },
                {
                  "introduced": "1.109.0_1"
                },
                {
                  "fixed": "1.134.0_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-aws-sam-cli-CVE-2025-27516",
      "modified": "2026-11-18T10:29:21Z",
      "published": "2026-08-13T16:37:01Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-BAGELS-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:37 – Updated: 2026-11-18 08:42 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "bagels",
            "purl": "pkg:brew/bagels"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0.3.6"
                },
                {
                  "fixed": "0.3.6_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-bagels-CVE-2025-27516",
      "modified": "2026-11-18T08:42:49Z",
      "published": "2026-08-13T16:37:04Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-BBOT-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:37 – Updated: 2026-11-18 09:47 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "bbot",
            "purl": "pkg:brew/bbot"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "1.0.5.1665"
                },
                {
                  "fixed": "2.4.0_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-bbot-CVE-2025-27516",
      "modified": "2026-11-18T09:47:04Z",
      "published": "2026-08-13T16:37:10Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-BUKU-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:38 – Updated: 2026-11-18 08:44 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "buku",
            "purl": "pkg:brew/buku"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "4.5_1"
                },
                {
                  "fixed": "4.9_5"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-buku-CVE-2025-27516",
      "modified": "2026-11-18T08:44:20Z",
      "published": "2026-08-13T16:38:25Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-CEKIT-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:39 – Updated: 2026-11-18 10:30 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "cekit",
            "purl": "pkg:brew/cekit"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "4.10.0"
                },
                {
                  "fixed": "4.14.0_2"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-cekit-CVE-2025-27516",
      "modified": "2026-11-18T10:30:06Z",
      "published": "2026-08-13T16:39:03Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-CERTSYNC-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:39 – Updated: 2026-11-18 09:59 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "certsync",
            "purl": "pkg:brew/certsync"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0.1.4"
                },
                {
                  "fixed": "0.1.6_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-certsync-CVE-2025-27516",
      "modified": "2026-11-18T09:59:40Z",
      "published": "2026-08-13T16:39:03Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-CHARMCRAFT-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:39 – Updated: 2026-11-18 10:00 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "charmcraft",
            "purl": "pkg:brew/charmcraft"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "1.3.2"
                },
                {
                  "fixed": "3.5.0"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-charmcraft-CVE-2025-27516",
      "modified": "2026-11-18T10:00:44Z",
      "published": "2026-08-13T16:39:06Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-CHECKOV-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:39 – Updated: 2026-11-18 10:02 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "checkov",
            "purl": "pkg:brew/checkov"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "1.0.855"
                },
                {
                  "fixed": "3.0.40"
                },
                {
                  "introduced": "3.2.20"
                },
                {
                  "fixed": "3.2.380_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-checkov-CVE-2025-27516",
      "modified": "2026-11-18T10:02:44Z",
      "published": "2026-08-13T16:39:32Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-CLOUDFORMATION-CLI-… (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:40 – Updated: 2026-11-18 08:44 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "cloudformation-cli",
            "purl": "pkg:brew/cloudformation-cli"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0.1.4"
                },
                {
                  "fixed": "0.2.38_3"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-cloudformation-cli-CVE-2025-27516",
      "modified": "2026-11-18T08:44:49Z",
      "published": "2026-08-13T16:40:09Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-CLOUDISCOVERY-CVE-2… (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:40 – Updated: 2026-10-08 01:08 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": null,
            "range_state": "affected",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@2.11.3",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "cloudiscovery",
            "purl": "pkg:brew/cloudiscovery"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "2.4.4"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@2.11.3",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "2.11.3"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-cloudiscovery-CVE-2025-27516",
      "modified": "2026-10-08T01:08:23Z",
      "published": "2026-08-13T16:40:09Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-CLOUDSPLAINING-CVE-… (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:40 – Updated: 2026-11-18 09:56 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "cloudsplaining",
            "purl": "pkg:brew/cloudsplaining"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0.6.2"
                },
                {
                  "fixed": "0.8.0_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-cloudsplaining-CVE-2025-27516",
      "modified": "2026-11-18T09:56:39Z",
      "published": "2026-08-13T16:40:09Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-COMMITIZEN-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:41 – Updated: 2026-11-18 08:46 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "commitizen",
            "purl": "pkg:brew/commitizen"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "2.4.1"
                },
                {
                  "fixed": "4.4.1_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-commitizen-CVE-2025-27516",
      "modified": "2026-11-18T08:46:59Z",
      "published": "2026-08-13T16:41:02Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }

    BREW-CONAN-CVE-2025-27516 (GHSA-CPWX-VRP4-4PQ7)

    Vulnerability from osv_homebrew – Published: 2026-08-13 16:41 – Updated: 2026-11-18 08:46 – Source website
    VLAI
    Summary
    Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
    Details

    An oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code.

    To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.

    Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup.


    {
      "affected": [
        {
          "ecosystem_specific": {
            "fix": "bump",
            "range_state": "fixed",
            "resource": "jinja2",
            "resource_purl": "pkg:pypi/jinja2@3.1.6",
            "upstream_fixed_in": "3.1.6"
          },
          "package": {
            "ecosystem": "Homebrew",
            "name": "conan",
            "purl": "pkg:brew/conan"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "1.13.0"
                },
                {
                  "fixed": "2.13.0_1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ]
        }
      ],
      "database_specific": {
        "confidence": "high",
        "source": "matched",
        "strategy": "registry",
        "upstream_evidence": [
          {
            "ecosystem": "PyPI",
            "key": "pkg:pypi/jinja2@3.1.6",
            "name": "jinja2",
            "resource": "jinja2",
            "strategy": "registry",
            "subject_version": "3.1.6"
          }
        ]
      },
      "details": "An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code.\n\nTo exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates.\n\nJinja\u0027s sandbox does catch calls to `str.format` and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the `|attr` filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the `|attr` filter no longer bypasses the environment\u0027s attribute lookup.",
      "id": "BREW-conan-CVE-2025-27516",
      "modified": "2026-11-18T08:46:59Z",
      "published": "2026-08-13T16:41:05Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7"
        },
        {
          "type": "ADVISORY",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27516"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"
        },
        {
          "type": "PACKAGE",
          "url": "https://github.com/pallets/jinja"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pallets/jinja/releases/tag/3.1.6"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2026-1471.yaml"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html"
        },
        {
          "type": "WEB",
          "url": "https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html"
        },
        {
          "type": "WEB",
          "url": "https://pypi.org/project/jinja2"
        }
      ],
      "schema_version": "1.7.3",
      "severity": [
        {
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
          "type": "CVSS_V4"
        }
      ],
      "summary": "Jinja2 vulnerable to sandbox breakout through attr filter selecting format method",
      "upstream": [
        "GHSA-cpwx-vrp4-4pq7",
        "CVE-2025-27516",
        "PYSEC-2026-1471"
      ]
    }