{
    "containers": {
        "cna": {
            "affected": [
                {
                    "product": "jinja2",
                    "vendor": "n/a",
                    "versions": [
                        {
                            "lessThan": "unspecified",
                            "status": "affected",
                            "version": "0.0.0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "2.11.3",
                            "status": "affected",
                            "version": "unspecified",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Yeting Li"
                }
            ],
            "datePublic": "2021-02-01T00:00:00",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "This affects the package jinja2 from 0.0.0 and before 2.11.3. The ReDoS vulnerability is mainly due to the `_punctuation_re regex` operator and its use of multiple wildcards. The last wildcard is the most exploitable as it searches for trailing punctuation. This issue can be mitigated by Markdown to format user content instead of the urlize filter, or by implementing request timeouts and limiting process memory."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "LOW",
                        "baseScore": 5.3,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "NONE",
                        "exploitCodeMaturity": "PROOF_OF_CONCEPT",
                        "integrityImpact": "NONE",
                        "privilegesRequired": "NONE",
                        "remediationLevel": "NOT_DEFINED",
                        "reportConfidence": "NOT_DEFINED",
                        "scope": "UNCHANGED",
                        "temporalScore": 5,
                        "temporalSeverity": "MEDIUM",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P",
                        "version": "3.1"
                    }
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "description": "Regular Expression Denial of Service (ReDoS)",
                            "lang": "en",
                            "type": "text"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "dateUpdated": "2021-07-08T06:07:09",
                "orgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730",
                "shortName": "snyk"
            },
            "references": [
                {
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://snyk.io/vuln/SNYK-PYTHON-JINJA2-1012994"
                },
                {
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/pallets/jinja/blob/ab81fd9c277900c85da0c322a2ff9d68a235b2e6/src/jinja2/utils.py%23L20"
                },
                {
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/pallets/jinja/pull/1343"
                },
                {
                    "name": "FEDORA-2021-2ab8ebcabc",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_FEDORA"
                    ],
                    "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVAKCOO7VBVUBM3Q6CBBTPBFNP5NDXF4/"
                },
                {
                    "name": "GLSA-202107-19",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_GENTOO"
                    ],
                    "url": "https://security.gentoo.org/glsa/202107-19"
                }
            ],
            "title": "Regular Expression Denial of Service (ReDoS)",
            "x_legacyV4Record": {
                "CVE_data_meta": {
                    "ASSIGNER": "report@snyk.io",
                    "DATE_PUBLIC": "2021-02-01T19:29:26.819563Z",
                    "ID": "CVE-2020-28493",
                    "STATE": "PUBLIC",
                    "TITLE": "Regular Expression Denial of Service (ReDoS)"
                },
                "affects": {
                    "vendor": {
                        "vendor_data": [
                            {
                                "product": {
                                    "product_data": [
                                        {
                                            "product_name": "jinja2",
                                            "version": {
                                                "version_data": [
                                                    {
                                                        "version_affected": ">=",
                                                        "version_value": "0.0.0"
                                                    },
                                                    {
                                                        "version_affected": "<",
                                                        "version_value": "2.11.3"
                                                    }
                                                ]
                                            }
                                        }
                                    ]
                                },
                                "vendor_name": "n/a"
                            }
                        ]
                    }
                },
                "credit": [
                    {
                        "lang": "eng",
                        "value": "Yeting Li"
                    }
                ],
                "data_format": "MITRE",
                "data_type": "CVE",
                "data_version": "4.0",
                "description": {
                    "description_data": [
                        {
                            "lang": "eng",
                            "value": "This affects the package jinja2 from 0.0.0 and before 2.11.3. The ReDoS vulnerability is mainly due to the `_punctuation_re regex` operator and its use of multiple wildcards. The last wildcard is the most exploitable as it searches for trailing punctuation. This issue can be mitigated by Markdown to format user content instead of the urlize filter, or by implementing request timeouts and limiting process memory."
                        }
                    ]
                },
                "impact": {
                    "cvss": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "LOW",
                        "baseScore": 5.3,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "NONE",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P",
                        "version": "3.1"
                    }
                },
                "problemtype": {
                    "problemtype_data": [
                        {
                            "description": [
                                {
                                    "lang": "eng",
                                    "value": "Regular Expression Denial of Service (ReDoS)"
                                }
                            ]
                        }
                    ]
                },
                "references": {
                    "reference_data": [
                        {
                            "name": "https://snyk.io/vuln/SNYK-PYTHON-JINJA2-1012994",
                            "refsource": "MISC",
                            "url": "https://snyk.io/vuln/SNYK-PYTHON-JINJA2-1012994"
                        },
                        {
                            "name": "https://github.com/pallets/jinja/blob/ab81fd9c277900c85da0c322a2ff9d68a235b2e6/src/jinja2/utils.py%23L20",
                            "refsource": "MISC",
                            "url": "https://github.com/pallets/jinja/blob/ab81fd9c277900c85da0c322a2ff9d68a235b2e6/src/jinja2/utils.py%23L20"
                        },
                        {
                            "name": "https://github.com/pallets/jinja/pull/1343",
                            "refsource": "MISC",
                            "url": "https://github.com/pallets/jinja/pull/1343"
                        },
                        {
                            "name": "FEDORA-2021-2ab8ebcabc",
                            "refsource": "FEDORA",
                            "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVAKCOO7VBVUBM3Q6CBBTPBFNP5NDXF4/"
                        },
                        {
                            "name": "GLSA-202107-19",
                            "refsource": "GENTOO",
                            "url": "https://security.gentoo.org/glsa/202107-19"
                        }
                    ]
                }
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-04T16:40:59.546Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://snyk.io/vuln/SNYK-PYTHON-JINJA2-1012994"
                    },
                    {
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/pallets/jinja/blob/ab81fd9c277900c85da0c322a2ff9d68a235b2e6/src/jinja2/utils.py%23L20"
                    },
                    {
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/pallets/jinja/pull/1343"
                    },
                    {
                        "name": "FEDORA-2021-2ab8ebcabc",
                        "tags": [
                            "vendor-advisory",
                            "x_refsource_FEDORA",
                            "x_transferred"
                        ],
                        "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVAKCOO7VBVUBM3Q6CBBTPBFNP5NDXF4/"
                    },
                    {
                        "name": "GLSA-202107-19",
                        "tags": [
                            "vendor-advisory",
                            "x_refsource_GENTOO",
                            "x_transferred"
                        ],
                        "url": "https://security.gentoo.org/glsa/202107-19"
                    }
                ]
            }
        ]
    },
    "cveMetadata": {
        "assignerOrgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730",
        "assignerShortName": "snyk",
        "cveId": "CVE-2020-28493",
        "datePublished": "2021-02-01T19:30:16.601731Z",
        "dateReserved": "2020-11-12T00:00:00",
        "dateUpdated": "2024-09-16T17:24:01.606Z",
        "state": "PUBLISHED"
    },
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1"
}