PYSEC-2026-1317
Reflected XSS Vulnerability in dpaste
Quick fix
PYSEC-2026-1317 — dpaste: upgrade to the fixed version with the command below.
pip install --upgrade 'dpaste>=3.8'Details
### Impact A security vulnerability has been identified in the expires parameter of the dpaste API, allowing for a POST Reflected XSS attack. This vulnerability can be exploited by an attacker to execute arbitrary JavaScript code in the context of a user's browser, potentially leading to unauthorized access, data theft, or other malicious activities.
### Patches - A patch has been applied to the dpaste GitHub repository to address the specific content value injection vulnerability. - Users are strongly advised to upgrade to dpaste release v3.8 or later versions, as dpaste versions older than v3.8 are susceptible to the identified security vulnerability. - The patch can be viewed and applied from the following link: [dpaste Commit Patch](https://github.com/DarrenOfficial/dpaste/commit/44a666a79b3b29ed4f340600bfcf55113bfb7086.patch)
### Workarounds At this time, the recommended course of action is to apply the provided patch to the affected systems. No known workarounds have been identified, and applying the patch is the most effective way to remediate the vulnerability.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/DarrenOfficial/dpaste/security/advisories/GHSA-r8j9-5cj7-cv39[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2023-49277[ADVISORY]
- https://github.com/DarrenOfficial/dpaste/commit/44a666a79b3b29ed4f340600bfcf55113bfb7086[WEB]
- https://github.com/DarrenOfficial/dpaste[PACKAGE]
- https://pypi.org/project/dpaste[PACKAGE]
- https://github.com/advisories/GHSA-r8j9-5cj7-cv39[ADVISORY]