CVE-2023-49277 Reflected Cross-site Scripting Vulnerability in dpaste

High 8.3 Published Updated

Attackers can execute arbitrary JavaScript in user browsers via the expires parameter, leading to data theft or unauthorized access.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-49277?

CVE-2023-49277 is a high-severity cross-site scripting vulnerability in DarrenOfficial dpaste, published on 1 Dec 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

dpaste is an open source pastebin application written in Python using the Django framework. 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. 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. No known workarounds have been identified, and applying the patch is the most effective way to remediate the vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2023-49277?

3 open source packages ship an affected version, including dpaste and Dpaste. It affects 1 product.

PackageAffectedFixed in
dpaste PyPIAll versions3.8
dpaste PyPIAll versions3.8
Dpaste PyPIAll versions3.8

Products include Darrennathanael Dpaste.

How do I fix CVE-2023-49277?

Upgrade dpaste to 3.8 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-49277 being exploited?

There is no known exploitation of CVE-2023-49277 in the wild and no public exploit code.

Sources

Also known as GHSA-r8j9-5cj7-cv39, PYSEC-2026-1317.

Is CVE-2023-49277 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free