UBUNTU-CVE-2026-31900

Source
https://ubuntu.com/security/CVE-2026-31900
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31900.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-31900
Upstream
Published
2026-03-11T20:16:00Z
Modified
2026-05-20T16:25:17.480373502Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Black is the uncompromising Python code formatter. Black provides a GitHub action for formatting code. This action supports an option, use_pyproject: true, for reading the version of Black to use from the repository pyproject.toml. A malicious pull request could edit pyproject.toml to use a direct URL reference to a malicious repository. This could lead to arbitrary code execution in the context of the GitHub Action. Attackers could then gain access to secrets or permissions available in the context of the action. Version 26.3.0 fixes this vulnerability.

References

Affected packages

Ubuntu:20.04:LTS / black

Package

Name
black
Purl
pkg:deb/ubuntu/black?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

19.*
19.3b0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "19.3b0-1",
            "binary_name": "black"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31900.json"

Ubuntu:22.04:LTS / black

Package

Name
black
Purl
pkg:deb/ubuntu/black?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

20.*
20.8b1-4
21.*
21.4b2-3
21.10b0-1
21.12b0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "21.12b0-1",
            "binary_name": "black"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31900.json"

Ubuntu:24.04:LTS / black

Package

Name
black
Purl
pkg:deb/ubuntu/black?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

23.*
23.7.0-1
23.10.1-1
23.11.0-1
24.*
24.2.0-1ubuntu1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "24.2.0-1ubuntu1",
            "binary_name": "black"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31900.json"

Ubuntu:25.10 / black

Package

Name
black
Purl
pkg:deb/ubuntu/black?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

25.*
25.1.0-2
25.1.0-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "25.1.0-3",
            "binary_name": "black"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31900.json"

Ubuntu:26.04:LTS / black

Package

Name
black
Purl
pkg:deb/ubuntu/black?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

25.*
25.1.0-3
25.9.0-1
25.11.0-1
25.12.0-1
26.*
26.1.0-1
26.1.0-1build1
26.3.1-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "26.3.1-1",
            "binary_name": "black"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31900.json"