CVE catalog

CVE-2019-8341

jinja2 affected and fixed versions

[CVE catalog]

An issue was discovered in Jinja2 2.10. The from_string function is prone to Server Side Template Injection (SSTI) where it takes the "source" parameter as a template object, renders it, and then returns it. The attacker can exploit it with {{INJECTION COMMANDS}} in a URI. NOTE: The maintainer and multiple third parties believe that this vulnerability isn't valid because users shouldn't use untrusted templates without sandboxing

Severity
High · CVSS 8.2CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
43.87% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debiantrixiejinja2Not reportedAffectedDistribution reports no fix[CVE-2019-8341]
Debiantrixiejinja23.1.6-1Affected[CVE-2019-8341]
Debiansidjinja2Not reportedAffectedDistribution reports no fix[CVE-2019-8341]
Debiansidjinja23.1.6-4Affected[CVE-2019-8341]
Ubuntuprojinja22.10-1UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.10-1ubuntu0.18.04.1UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.10-1ubuntu0.18.04.1+esm1UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.10-1ubuntu0.18.04.1+esm2UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.10-1ubuntu0.18.04.1+esm3UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.10-1ubuntu0.18.04.1+esm4UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.10-1ubuntu0.18.04.1+esm5UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.9.6-1UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]

Showing 12 observations. All 17 observations, including unknown and conflicting reports, are available below.

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
UnknownRelease not reportedjinja2Not reportedUnknownSource applicability is not establishedProvider not reported
Debianbookwormjinja2Not reportedAffectedDistribution reports no fix[CVE-2019-8341]
Debianbookwormjinja23.1.2-1+deb12u3Affected[CVE-2019-8341]
Debianforkyjinja2Not reportedAffectedDistribution reports no fix[CVE-2019-8341]
Debianforkyjinja23.1.6-4Affected[CVE-2019-8341]
Debiansidjinja2Not reportedAffectedDistribution reports no fix[CVE-2019-8341]
Debiansidjinja23.1.6-4Affected[CVE-2019-8341]
Debiantrixiejinja2Not reportedAffectedDistribution reports no fix[CVE-2019-8341]
Debiantrixiejinja23.1.6-1Affected[CVE-2019-8341]
Ubuntuprojinja22.10-1UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.10-1ubuntu0.18.04.1UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.10-1ubuntu0.18.04.1+esm1UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.10-1ubuntu0.18.04.1+esm2UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.10-1ubuntu0.18.04.1+esm3UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.10-1ubuntu0.18.04.1+esm4UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.10-1ubuntu0.18.04.1+esm5UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Ubuntuprojinja22.9.6-1UnknownSource applicability is not established[UBUNTU-CVE-2019-8341]
Original provider fields
{
  "package_releases": [
    {
      "name": "jinja2",
      "status": "vulnerable",
      "release": "sid",
      "version": "3.1.6-4"
    },
    {
      "name": "jinja2",
      "status": "vulnerable",
      "release": "forky",
      "version": "3.1.6-4"
    },
    {
      "name": "jinja2",
      "status": "vulnerable",
      "release": "trixie",
      "version": "3.1.6-1"
    },
    {
      "name": "jinja2",
      "status": "vulnerable",
      "release": "bookworm",
      "version": "3.1.2-1+deb12u3"
    }
  ],
  "fixed_versions": [
    {
      "bug": null,
      "name": "jinja2",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "unimportant",
      "fixed_version": ""
    },
    {
      "bug": null,
      "name": "jinja2",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "unimportant",
      "fixed_version": ""
    },
    {
      "bug": null,
      "name": "jinja2",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "unimportant",
      "fixed_version": ""
    },
    {
      "bug": null,
      "name": "jinja2",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "unimportant",
      "fixed_version": ""
    }
  ],
  "distribution_packages": [
    {
      "name": "jinja2",
      "fixed_version": "not yet fixed",
      "applicability_unknown": true
    },
    {
      "name": "jinja2",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "2.9.6-1",
        "2.10-1",
        "2.10-1ubuntu0.18.04.1",
        "2.10-1ubuntu0.18.04.1+esm1",
        "2.10-1ubuntu0.18.04.1+esm2",
        "2.10-1ubuntu0.18.04.1+esm3",
        "2.10-1ubuntu0.18.04.1+esm4",
        "2.10-1ubuntu0.18.04.1+esm5"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2019-8341",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2019-8341",
      "provider_updated_at": "2025-09-08T16:45:17Z",
      "applicability_unknown": true
    }
  ]
}

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • Source package: [jinja2]

    Details (2)
    • 3.1.2-1+deb12u3 · all · bookworm

      Affected

      dsa · jinja2 · debian · bookworm; dsa · jinja2 · debian · 12

    • 3.1.2-1+deb12u3 · all · bookworm

      Affected

      dsa · jinja2 · debian · bookworm; dsa · jinja2 · debian · 12

  • Source package: [jinja2]

    Details (2)
    • 3.1.2-1+deb12u3 · all · bookworm

      Affected

      dsa · jinja2 · debian · bookworm; dsa · jinja2 · debian · 12

    • 3.1.2-1+deb12u3 · all · bookworm

      Affected

      dsa · jinja2 · debian · bookworm; dsa · jinja2 · debian · 12

[Debian 13 (Trixie)]

  • Source package: [jinja2]

    Details (2)
    • 3.1.6-1 · all · trixie

      Affected

      dsa · jinja2 · debian · 13

    • 3.1.6-1 · all · trixie

      Affected

      dsa · jinja2 · debian · 13

  • Source package: [jinja2]

    Details (2)
    • 3.1.6-1 · all · trixie

      Affected

      dsa · jinja2 · debian · 13

    • 3.1.6-1 · all · trixie

      Affected

      dsa · jinja2 · debian · 13

Observed:

References