Advisory

GHSA-r8j9-5cj7-cv39

Also known as: CVE-2023-49277, PYSEC-2026-1317

Summary

Reflected XSS Vulnerability in dpaste

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

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-12-01 19:23 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

dpaste

PyPI · All systems

Affected

  • introduced 0, fixed 3.8 (ecosystem)

Fixed versions

3.8

Fix

  • Fixed version 3.8
    pip install --upgrade dpaste==3.8

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences