# CVE-2026-95849: Linkwarden: Script injection via `github.head_ref` in privileged `pull_request_target` workflow (.github/workflows/check-branch.yml)

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-17T19:08:12.600Z
- Modified: 2026-11-17T20:17:59.920Z
- Weaknesses: CWE-78, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- linkwarden linkwarden: < 2.15.0

## References

- <https://github.com/linkwarden/linkwarden/security/advisories/GHSA-2xf4-7cpj-c6rq> (exploit)
- <https://github.com/linkwarden/linkwarden/pull/1740>
- <https://github.com/linkwarden/linkwarden/commit/14c0d40515ab5c6e7df8f9a845dde2c628e1a783>
- <https://github.com/linkwarden/linkwarden/releases/tag/v2.15.0>

## Sources

- CVE List: [CVE-2026-95849](https://www.cve.org/CVERecord?id=CVE-2026-95849), CVE Terms of Use, modified 2026-11-17
- NVD: [CVE-2026-95849](https://nvd.nist.gov/vuln/detail/CVE-2026-95849), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-95849 · Whole record: https://cve.day/CVE-2026-95849.json · Rebuilt by cve.day 2026-11-25T22:59:51.021Z
