{"id":"CVE-2024-21520","state":"PUBLISHED","title":"Versions of the package djangorestframework before 3.15.2 are vulnerable to Cross-site Scripting (XSS) via the break_long_headers template filter due to improper input sanitization","description":"Versions of the package djangorestframework before 3.15.2 are vulnerable to Cross-site Scripting (XSS) via the break_long_headers template filter due to improper input sanitization before splitting and joining with <br> tags.","publishedAt":"2024-06-26T05:00:02.490Z","updatedAt":"2024-12-31T10:10:34.187Z","severity":{"score":5.3,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P","source":"snyk"},"assigner":"snyk","products":["n/a djangorestframework"],"affected":[{"vendor":"n/a","product":"djangorestframework","versions":[{"version":"0","status":"affected","lessThan":"3.15.2","versionType":"semver"}]}],"references":["https://security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137","https://github.com/encode/django-rest-framework/pull/9435","https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642","https://github.com/encode/django-rest-framework/compare/3.15.1...3.15.2"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:06:59.846Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/21xxx/CVE-2024-21520.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-21520","state":"PUBLISHED","datePublished":"2024-06-26T05:00:02.490Z","dateUpdated":"2024-12-31T10:10:34.187Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2023-12-22T12:33:20.120Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"Versions of the package djangorestframework before 3.15.2 are vulnerable to Cross-site Scripting (XSS) via the break_long_headers template filter due to improper input sanitization before splitting and joining with <br> tags."}],"affected":[{"vendor":"n/a","product":"djangorestframework","versions":[{"version":"0","status":"affected","lessThan":"3.15.2","versionType":"semver"}]}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137"},{"url":"https://github.com/encode/django-rest-framework/pull/9435"},{"url":"https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642"}],"metrics":[{"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P"},"cvssV4_0":{"version":"4.0","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","subAvailabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"Cross-site Scripting (XSS)","lang":"en"}]}],"providerMetadata":{"shortName":"snyk","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateUpdated":"2024-12-31T10:10:34.187Z"},"credits":[{"value":"ch4n3-yoon","lang":"en"}]},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"django-rest-framework","product":"django_rest_framework","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"3.15.2","versionType":"custom"}],"cpes":["cpe:2.3:a:django-rest-framework:django_rest_framework:3.15.2:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-26T13:25:31.230970Z","id":"CVE-2024-21520","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-26T13:27:25.730Z"}},{"title":"CVE Program Container","references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137","tags":["x_transferred"]},{"url":"https://github.com/encode/django-rest-framework/pull/9435","tags":["x_transferred"]},{"url":"https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642","tags":["x_transferred"]},{"url":"https://github.com/encode/django-rest-framework/compare/3.15.1...3.15.2","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T22:20:40.905Z"}}]}}}