CVE-2026-55158

Source
https://cve.org/CVERecord?id=CVE-2026-55158
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55158.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-55158
Aliases
Published
2026-09-15T14:47:58Z
Modified
2026-09-18T03:30:23Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Conflibot: Command injection via crafted pull request branch names under pull_request_target
Details

Conflibot warns in advance when merging a pull request will cause conflicts in other open pull requests. Prior to 1.2.1, src/index.ts builds git checkout, git merge, and git format-patch commands by interpolating the attacker-controlled pull request head.ref value into strings passed to exec. In the documented pull_request_target configuration, an attacker can open a pull request, including from a fork, whose branch name contains shell metacharacters, and the workflow automatically interprets those characters as commands without maintainer interaction. The commands execute on a runner with base-repository secrets and a write-scoped GITHUB_TOKEN, allowing arbitrary command execution, secret or token exfiltration, unauthorized pushes, and other token abuse. The fixed implementations in src/index.ts and src/conflibot.ts use execFile or spawn argument arrays, and the v2 line also uses numeric pull-request refs rather than branch names. This issue is fixed in versions 1.2.1 and 2.0.0.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-78"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55158.json"
}
References

Affected packages

Git / github.com/wktk/conflibot

Affected ranges

Type
GIT
Repo
https://github.com/wktk/conflibot
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.2.1"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

v0.*
v0.0.0
v0.1.0
v0.2.0
v0.3.0
v1.*
v1.0.0
v1.0.1
v1.1.0
v1.1.1
v1.1.2-pre1
v1.1.2-pre2
v1.2.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55158.json"