CSRF Vulnerability in xdg-utils: SameSite Cookie Exposure

xdg-utils Updated 02 Oct 2025

Summary

23/06/2025
N/A
No i
Unrated
Not published

CVE-2025-52968: xdg-open in xdg-utils through 1.2.1 can send requests containing SameSite=Strict cookies, which can facilitate CSRF. Affects xdg-utils versions 1.1.3-4.1 – 1.2.1-2. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

xdg-utils is a set of scripts that help applications integrate with the desktop environment in Linux systems. It provides a standardized way to open files and URLs in the user's preferred applications. The package is widely used across various Linux distributions, including Debian. The vulnerability in question allows for the potential exposure of SameSite=Strict cookies, which could lead to Cross-Site Request Forgery (CSRF) attacks.

Vulnerability Detail

The vulnerability identified as CVE-2025-52968 arises from the xdg-open command in xdg-utils version 1.2.1. It can send requests that include SameSite=Strict cookies, which may facilitate CSRF attacks. This issue is particularly concerning as it could allow malicious actors to exploit the command-line options of xdg-open to manipulate browser behavior, potentially leading to unauthorized actions on behalf of the user. The dispute surrounding this vulnerability stems from the fact that typical integrations of xdg-open do not disclose whether the command was executed manually by a user or triggered by untrusted content.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid using xdg-open for opening URLs from untrusted sources. Instead, manually copy and paste URLs into a trusted browser to mitigate the risk of CSRF attacks.

Conclusion

The vulnerability CVE-2025-52968 in xdg-utils presents a significant risk due to its potential to facilitate CSRF attacks through SameSite=Strict cookies. Users are encouraged to update their xdg-utils package to the latest version to mitigate this risk. Additionally, utilizing workarounds can help protect against potential exploitation until a fix is applied.

See every vulnerability recorded for xdg-utils →

Share this vulnerability

FAQ

CVE-2025-52968 is a vulnerability in xdg-utils that allows for the potential exposure of SameSite=Strict cookies, which can facilitate CSRF attacks.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

SameSite cookies are a web security feature that helps prevent CSRF attacks by controlling how cookies are sent with cross-site requests.

If you cannot update xdg-utils, consider using a workaround by avoiding the use of xdg-open for untrusted URLs and manually opening them in a secure browser.

While the vulnerability poses a risk, its impact may vary based on how xdg-open is integrated into applications. It is advisable to apply fixes or workarounds promptly.

Related vulnerabilities

Recent vulnerabilities recorded for xdg-utils.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback