Linkwarden
CVE-2026-42455
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess public Linkwarden instance
-
DeliveryUpload malicious HTML via POST /api/v1/archives
-
ExploitSocial engineer victim to view archive
-
ExecutionJavaScript executes in authenticated session
-
PersistExfiltrate session cookies
-
ImpactAccount takeover
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires Linkwarden instance to have the archive upload API endpoint /api/v1/archives accessible to untrusted users - specifically when the application permits unauthenticated uploads (PR:N from CVSS vector) or when authentication is present but not validated for malicious content. Exploitation also requires a victim user with authenticated session to subsequently access the archived content via the GET endpoint, triggering the stored XSS payload. The vulnerability is NOT limited by specific deployment configurations - all default Linkwarden installations lack the required Content-Security-Policy protections. Limiting factors: in private single-user deployments with no external access, attack surface is minimal. In team/collaborative environments or internet-facing instances (common for self-hosted bookmark managers), exploitation is realistic. Browser-based protections (XSS Auditor, modern CSP defaults) do NOT mitigate this attack because the malicious content is served from the legitimate Linkwarden origin with text/html content type. |
| Impact | Real-world risk is high for Linkwarden deployments accessible to untrusted users or public internet, particularly in team/collaborative environments where users share bookmarks. CVSS 4.0 vector shows AV:N (network attack vector), AC:L (low complexity), PR:N (no privileges required), and UI:N (no user interaction) with high integrity impact (VI:H), indicating remote unauthenticated exploitation is trivial. However, the CVSS score should be interpreted cautiously: while the attack vector is 'network' and requires no privileges to upload, actual impact requires a victim to access the malicious archive, which may not be fully captured in the UI:N metric. The lack of patches (confirmed by GitHub Security Advisory GHSA-fjvg-mch3-j3vg) elevates urgency for affected organizations. EPSS score not provided, limiting automated risk prioritization. No CISA KEV listing suggests no widespread exploitation campaigns detected, but self-hosted applications often see targeted attacks that evade broad threat intelligence. Critical missing data: confirmation of affected version range beyond '2.14.0 and prior' - unclear if 2.14.1+ exists or addresses this issue. Organizations must verify their deployed version against the CPE cpe:2.3:a:linkwarden:linkwarden and assess exposure based on access controls. |
| Exploit ScenarioDerived | An external attacker accesses a publicly exposed or low-trust Linkwarden instance (common in team collaboration scenarios). They create a malicious HTML file containing JavaScript that steals session cookies, exfiltrates bookmarks, or modifies user settings. The attacker uploads this file via POST /api/v1/archives/[linkId]?format=4 without authentication (PR:N). When a legitimate authenticated user (administrator or team member) later views the archived bookmark via GET /api/v1/archives/[linkId]?format=4, the malicious JavaScript executes in their browser with full session privileges, sending cookies to the attacker's domain. The attacker uses stolen session tokens to access the victim's account, harvest sensitive bookmarks, or inject additional malicious archives. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 09, 2026
Stored cross-site scripting in Linkwarden 2.14.0 and earlier allows remote unauthenticated attackers to execute arbitrary JavaScript in victims' authenticated sessions by uploading malicious HTML archives. The vulnerability exists because the /api/v1/archives endpoint accepts unsanitized HTML files and serves them without Content-Security-Policy protections, enabling session hijacking and account takeover. No vendor-released patch identified at time of analysis (GHSA advisory notes no patches available). EPSS data not provided; no active exploitation (CISA KEV) or public POC identified at time of analysis.
RemediationAI
No vendor-released patch exists at time of analysis per GHSA-fjvg-mch3-j3vg advisory statement 'there are no publicly available patches.' Organizations running Linkwarden 2.14.0 or earlier should implement these compensating controls immediately: (1) Deploy a reverse proxy (nginx, Caddy, Traefik) in front of Linkwarden and configure strict Content-Security-Policy headers for all /api/v1/archives responses - specifically set 'Content-Security-Policy: default-src none; script-src none; object-src none; base-uri none' to block JavaScript execution. Trade-off: may break legitimate HTML archive display features if archives contain intentional scripts. (2) Restrict archive upload permissions to trusted administrative users only via application access controls or reverse proxy authentication - disable public/anonymous uploads to the /api/v1/archives endpoint. Trade-off: reduces collaborative functionality for untrusted team members. (3) Implement file type validation at the reverse proxy layer to reject text/html uploads entirely, forcing users to archive as PDF or screenshot formats instead. Trade-off: eliminates HTML archiving capability. Monitor the GitHub repository (https://github.com/linkwarden/linkwarden) and subscribe to GHSA-fjvg-mch3-j3vg for patch release notifications. Consider temporarily disabling archive upload features if compensating controls cannot be deployed quickly.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Linkwarden is a self-hosted collaborative bookmark manager written in JavaScript (likely Next.js/React based on typical self-hosted webapp stacks). This vulnerability stems from CWE-79 (Improper Neutralization of Input During Web Page Generation) in the archive upload and retrieval mechanism. The application's REST API endpoint POST /api/v1/archives/[linkId]?format=4 accepts HTML file uploads (Content-Type: text/html) without server-side sanitization or validation of embedded JavaScript. When retrieved via GET /api/v1/archives/[linkId]?format=4, the stored HTML is served directly from the Linkwarden origin with text/html Content-Type but critically lacks Content-Security-Policy headers that would restrict script execution. This creates a stored XSS condition where malicious JavaScript persists server-side and executes in the browser context of any user who accesses the archived content, inheriting their authenticated session privileges.
Know when Linkwarden gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
Linkwarden is a self-hosted, open-source collaborative bookmark manager to collect, organize and archive webpages. In versions 2.14.0 and prior, the archive upload endpoint (POST /api/v1/archives/[linkId]?format=4) accepts HTML files (text/html) without sanitizing JavaScript content. When the archive is later accessed via GET /api/v1/archives/[linkId]?format=4, the HTML is served with Content-Type: text/html from the Linkwarden origin, without any Content-Security-Policy header. This allows arbitrary JavaScript execution in the context of the authenticated Linkwarden sessio. At time of publication, there are no publicly available patches.
Executive ViewAI
Linkwarden versions 2.14.0 and earlier contain a stored cross-site scripting vulnerability that allows unauthenticated attackers to inject malicious code into archived content, compromising authenticated user sessions and enabling account takeover. Organizations using Linkwarden for document management face immediate risk of credential theft and unauthorized access to sensitive archived materials without vendor remediation currently available.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable HTML file uploads to the /api/v1/archives endpoint or restrict upload functionality to authenticated administrators only; (2) Deploy Web Application Firewall rules blocking .html, .htm, and .mhtml file uploads; (3) Implement strict Content-Security-Policy headers (default-src 'self'; script-src 'self'; frame-ancestors 'none'); (4) Enforce regular session timeouts for authenticated users; (5) Monitor authentication logs for anomalous account activity; (6) Isolate Linkwarden deployment from sensitive network segments until patch is available.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
More in Linkwarden
View allServer-Side Request Forgery in Linkwarden's fetchTitleAndHeaders function enables authenticated users to perform arbitra
Incorrect authorization in Linkwarden before 2.17.0 lets an authenticated member of a shared collection who has only add
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB