What’s Vulnerable › Vulnerabilities
CVE-2026-95849: Linkwarden: Script injection via `github.head_ref` in privileged `pull_request_target` workflow (.github/workflows/check-branch.yml)
- Severity: medium (CVSS 6.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-11-17 · updated 2026-11-17
- Weakness: CWE-78
Description
Linkwarden is a self-hosted, open-source collaborative bookmark manager to collect, organize and archive webpages. Prior to 2.15.0, .github/workflows/check-branch.yml runs on the privileged pull_request_target event and interpolates the attacker-controlled github.head_ref source branch name unquoted into a run: shell script. An unauthenticated attacker can open a pull request from a fork with shell metacharacters in its branch name, causing arbitrary commands to execute in the base repository's privileged CI job before the branch comparison result matters. The job has access to GITHUB_TOKEN and any exposed secrets, allowing secret exfiltration and, when workflow token permissions allow repository writes, modification of repository content. This issue is fixed in version 2.15.0.
Affected products
- linkwarden: before 2.15.0
References
- https://github.com/linkwarden/linkwarden/commit/14c0d40515ab5c6e7df8f9a845dde2c628e1a783
- https://github.com/linkwarden/linkwarden/pull/1740
- https://github.com/linkwarden/linkwarden/releases/tag/v2.15.0
- https://github.com/linkwarden/linkwarden/security/advisories/GHSA-2xf4-7cpj-c6rq
- https://github.com/linkwarden/linkwarden/security/advisories/GHSA-2xf4-7cpj-c6rq
Get alerted when CVE-2026-95849 or the next vulnerability affects your stack