{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2023-49291","published":"2023-12-05T00:15:09.403000Z","last_modified":"2026-06-17T06:35:46.920000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-20"],"cpes":[{"criteria":"cpe:2.3:a:tj-actions:branch-names:*:*:*:*:*:*:*:*","part":"a","vendor":"tj-actions","product":"branch-names","version_end_excluding":"7.0.0"},{"criteria":"cpe:2.3:a:tj-actions:branch-names:*:*:*:*:*:*:*:*","part":"a","vendor":"tj-actions","product":"branch-names","version_start_including":"7.0.1","version_end_excluding":"7.0.7"}],"cpes_truncated":false,"vendors":["tj-actions"],"products":["tj-actions/branch-names"],"epss":{"score":0.01537,"percentile":0.75219,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-8v8w-v8xg-79rf","ecosystem":"GitHub Actions","name":"tj-actions/branch-names","ranges":[{"introduced":"0","fixed":"7.0.7"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2023-49291/","html_en":"/en/cve/CVE-2023-49291/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-49291","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-49291"},"untrusted":{"vendor_name":"Tj-actions","product_name":"Branch-names","desc_en":"tj-actions/branch-names is a Github action to retrieve branch or tag names with support for all events. The `tj-actions/branch-names` GitHub Actions improperly references the `github.event.pull_request.head.ref` and `github.head_ref` context variables within a GitHub Actions `run` step. The head ref variable is the branch name and can be used to execute arbitrary code using a specially crafted branch name. As a result an attacker can use this vulnerability to steal secrets from or abuse `GITHUB_TOKEN` permissions. This vulnerability has been addressed in version 7.0.7. Users are advised to upgrade. There are no known workarounds for this vulnerability.","affected":[{"untrusted_vendor":"tj-actions","untrusted_product":"branch-names","versions":[]}],"references":[{"url":"https://github.com/tj-actions/branch-names/commit/4923d1ca41f928c24f1c1b3af9daaadfb71e6337","tags":["Patch"]},{"url":"https://github.com/tj-actions/branch-names/commit/6c999acf206f5561e19f46301bb310e9e70d8815","tags":["Patch"]},{"url":"https://github.com/tj-actions/branch-names/commit/726fe9ba5e9da4fcc716223b7994ffd0358af060","tags":["Patch"]},{"url":"https://github.com/tj-actions/branch-names/security/advisories/GHSA-8v8w-v8xg-79rf","tags":["Exploit","Vendor Advisory"]},{"url":"https://securitylab.github.com/research/github-actions-untrusted-input","tags":["Exploit","Third Party Advisory"]}]}}