CVE-2026-95849
Linkwarden: Script injection via `github.head_ref` in privileged `pull_request_target` workflow (.github/workflows/check-branch.yml)
- CVSS
- 6.8
- EPSS
- 0.40% (p37)
- Published
- 2026-11-17
- Age
- 19d old
- Modified
- 2026-11-18
- Product
- linkwarden linkwarden
- Aliases
- GHSA-2xf4-7cpj-c6rq
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
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.
Sources
- NVD · first seen 19d ago · NVD terms of use
- OSV · first seen 19d ago · CC-BY 4.0
- CVE List · first seen 19d ago · CVE Terms of Use
References
- https://github.com/linkwarden/linkwarden/security/advisories/GHSA-2xf4-7cpj-c6rq x_refsource_CONFIRM
- https://github.com/linkwarden/linkwarden/pull/1740 x_refsource_MISC
- https://github.com/linkwarden/linkwarden/commit/14c0d40515ab5c6e7df8f9a845dde2c628e1a783 x_refsource_MISC
- https://github.com/linkwarden/linkwarden/releases/tag/v2.15.0 x_refsource_MISC
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/95xxx/CVE-2026-95849.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-95849 advisory