Script injection in Linkwarden CI workflow via pull request branch name
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-78.
Summary
Linkwarden versions before 2.15.0 run the .github/workflows/check-branch.yml workflow on the privileged pull_request_target event and insert the attacker-controlled github.head_ref branch name unquoted into a shell script. An unauthenticated attacker can open a pull request from a fork whose branch name contains shell metacharacters, which runs arbitrary commands in the base repository's privileged CI job. The job can reach GITHUB_TOKEN and any exposed secrets, so an attacker can exfiltrate secrets or modify repository content when the token permissions allow writes. The flaw is an OS command injection (CWE-78) that is also classified as improper control of code generation (CWE-94).
Written with Claude Haiku 5.5 from the sources below · 2026-11-17
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| linkwarden | linkwarden | before 2.15.0 | 2.15.0 | Patch available | CNA |
- linkwarden Vendorlinkwarden Affected before 2.15.0 Fixed in 2.15.0 Patch available CNA
Remediation
Upgrade Linkwarden to version 2.15.0. The sources list no fixed version for other products.
Written with Claude Haiku 5.5 from the sources below · 2026-11-17
- Fix · CNA linkwarden (linkwarden) Fixed in 2.15.0
Timeline
- 2026-11-17 Threatist record created from CVE-2026-95849
- 2026-11-17 CISA SSVC decision points changed
References
More linkwarden vulnerabilities
- TI-2025-31601 Linkwarden Local File Inclusion Vulnerability CVSS 4.0HIGH 8.7
- TI-2026-32281 LinkWarden: Server-Side Request Forgery (SSRF) in Link Creation via fetchTitleAndHeaders Function CVSS 3.1CRITICAL 9.1
- TI-2026-30744 LinkWarden: Stored XSS via Client-Side Archive Upload (Unsanitized HTML served from same origin) CVSS 4.0HIGH 8.8
- TI-2026-96632 Incorrect authorization in Linkwarden lets members replace other users' archives CVSS 4.0MEDIUM 5.3
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences