### [CVE-2024-21520](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21520) ![](https://img.shields.io/static/v1?label=Product&message=djangorestframework&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=0%3C%203.15.2%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=Cross-site%20Scripting%20(XSS)&color=brighgreen) ### 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
tags. ### POC #### Reference - https://security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137 #### Github - https://github.com/ch4n3-yoon/CVE-2024-21520-Demo - https://github.com/ch4n3-yoon/ch4n3-yoon - https://github.com/nomi-sec/PoC-in-GitHub