{"id":"CVE-2026-95849","aliases":[],"cve":{"records":[{"id":"CVE-2026-95849","source":"GitHub_M","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-22T16:39:45.794Z","published":"2026-11-17T19:08:12.600Z","modified":"2026-11-17T19:30:53.686Z"}],"publishers":[{"name":"GitHub_M","role":"CNA","organizationId":"a0819718-46f1-4df5-94e2-005712e83aaa","modified":"2026-11-17T19:08:12.600Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-11-17T19:30:53.686Z"}],"references":[{"url":"https://github.com/linkwarden/linkwarden/security/advisories/GHSA-2xf4-7cpj-c6rq","tags":["x_refsource_CONFIRM"],"source":"GitHub_M"},{"url":"https://github.com/linkwarden/linkwarden/pull/1740","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/linkwarden/linkwarden/commit/14c0d40515ab5c6e7df8f9a845dde2c628e1a783","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/linkwarden/linkwarden/releases/tag/v2.15.0","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/linkwarden/linkwarden/security/advisories/GHSA-2xf4-7cpj-c6rq","tags":["exploit"],"source":"CISA-ADP"}],"weaknesses":[{"id":"CWE-78","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command","source":"GitHub_M"},{"id":"CWE-94","description":"CWE-94: Improper Control of Generation of Code","source":"GitHub_M"}],"applicability":[],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-11-17T19:30:30.868484Z","decisions":[{"name":"Exploitation","value":"poc"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"partial"}]}]},"title":"Linkwarden: Script injection via `github.head_ref` in privileged `pull_request_target` workflow (.github/workflows/check-branch.yml)","titleSource":"GitHub_M","descriptionSource":"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.","score":6.8,"severity":"medium","published":"2026-11-17T19:08:12.600Z","modified":"2026-11-17T19:30:53.686Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"linkwarden","name":"linkwarden","platforms":[],"versions":[{"version":"< 2.15.0","status":"affected"}],"cpes":[],"source":"GitHub_M","url":"https://www.cve.org/CVERecord?id=CVE-2026-95849"}],"remediation":[],"references":["https://github.com/linkwarden/linkwarden/security/advisories/GHSA-2xf4-7cpj-c6rq","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":[{"name":"CVE","id":"CVE-2026-95849","modified":"2026-11-17T19:30:53.686Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-95849"}],"assessments":[{"source":"GitHub_M","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","score":6.8}],"sourceAffected":[],"observedAt":"2026-11-17T19:43:17.340Z","kev":{"status":"not-listed","checkedAt":"2026-11-30T22:55:31.926Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-17T19:45:33.464Z","attemptedAt":"2026-11-17T19:45:33.464Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-17T19:45:35.594Z","attemptedAt":"2026-11-17T19:45:35.594Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-17T19:45:34.372Z","attemptedAt":"2026-11-17T19:45:34.372Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-17T19:45:35.594Z","attemptedAt":"2026-11-17T19:45:35.594Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-95849","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-95849","modified":"2026-11-17T19:18:03.577","score":6.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","checkedAt":"2026-11-17T19:45:33.464Z"}],"aiSummary":{"text":"Linkwarden versions prior to 2.15.0 are vulnerable to script injection via the `github.head_ref` in a privileged workflow, allowing an unauthenticated attacker to execute arbitrary commands. The attacker must open a pull request from a fork with shell metacharacters in its branch name. This weakness may allow secret exfiltration and repository modification.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-17T19:46:05.960Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-95849"}]}}