Cross-Site Scripting Vulnerability in Shaarli Package

shaarli Updated 02 Oct 2025

Summary

02/01/2020
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2013-7351: Multiple cross-site scripting (XSS) vulnerabilities in index.php in Shaarli allow remote attackers to inject arbitrary web script or HTML via the URL to the (1) showRSS, (2) showATOM, or (3) showDailyRSS function; a (4)... Affects shaarli versions < 0.0.41~beta~dfsg2-4. Fixed in 0.0.41~beta~dfsg2-4. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Shaarli is a self-hosted bookmark manager that allows users to save and share links easily. It is designed for simplicity and efficiency, enabling users to organize their bookmarks with tags and descriptions. However, the package has been found to be vulnerable to multiple cross-site scripting (XSS) attacks, which can compromise user data and security.

Vulnerability Detail

The vulnerability arises from improper handling of user input in the index.php file of the Shaarli application. Attackers can exploit this flaw by injecting arbitrary web scripts or HTML through various functions, including showRSS, showATOM, showDailyRSS, and importFile. This can lead to unauthorized actions being performed on behalf of the user, data theft, or redirection to malicious sites.

How To Fix

Minimum fixed version

0.0.41~beta~dfsg2-4

This is the first release that contains the fix.

sudo apt-get install --only-upgrade shaarli

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, you can sanitize user input by implementing input validation and escaping output in the affected functions. This can help mitigate the risk of XSS attacks until the package is updated.

Conclusion

The identified cross-site scripting vulnerability in the Shaarli package poses significant risks to users. It is crucial to update to the latest patched version to ensure the security of your application. Additionally, implementing workarounds can help mitigate risks until an update can be performed.

See every vulnerability recorded for shaarli →

Share this vulnerability

FAQ

The vulnerability is a cross-site scripting (XSS) issue that allows attackers to inject malicious scripts into the Shaarli application.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor for open-source vulnerabilities without requiring any installation.

If exploited, this vulnerability can lead to unauthorized access to user accounts, data theft, and the execution of malicious scripts in the context of the user's browser.

Yes, a patched version of the Shaarli package (0.0.41~beta~dfsg2-4) is available. It is recommended to update to this version to mitigate the risk.

If an immediate update is not possible, implement input validation and output escaping as a temporary workaround to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for shaarli.

How To Fix

Minimum fixed version

0.0.41~beta~dfsg2-4

This is the first release that contains the fix.

sudo apt-get install --only-upgrade shaarli

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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