Advisories
Act nowExploited · Confirmed

brotli, brotlicffi: Google Brotli Unchecked Return Value Vulnerability

There is evidence it is being used against people now, on something Phylax follows.

Does it affect what I run?

Checked in your browser. The version you type is not sent anywhere.

Who is affected

  • brotli (PyPI): from 1.0.3, before 1.2.1
  • brotlicffi (PyPI): from 1.0.3, before 1.2.1.0
  • brotli (PyPI): every version, before 1.2.1
  • brotlicffi (PyPI): every version, before 1.2.1.0
  • github.com/andybalholm/brotli (Go): every version, before 1.2.7

The fix

  • brotli (PyPI) fixed in 1.2.1

    pip
    python -m pip install brotli==1.2.1
    uv
    uv add brotli==1.2.1
    poetry
    poetry add brotli@1.2.1
    Check what is installed
    python -m pip show brotli
    Paste into Cursor, Lovable or Claude Code
    Upgrade the PyPI dependency brotli to 1.2.1 or the nearest later release, to fix CVE-2026-111497. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • brotlicffi (PyPI) fixed in 1.2.1.0

    pip
    python -m pip install brotlicffi==1.2.1.0
    uv
    uv add brotlicffi==1.2.1.0
    poetry
    poetry add brotlicffi@1.2.1.0
    Check what is installed
    python -m pip show brotlicffi
    Paste into Cursor, Lovable or Claude Code
    Upgrade the PyPI dependency brotlicffi to 1.2.1.0 or the nearest later release, to fix CVE-2026-111497. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • github.com/andybalholm/brotli (Go) fixed in 1.2.7

    go
    go get github.com/andybalholm/brotli@v1.2.7
    Check what is installed
    go list -m github.com/andybalholm/brotli
    Paste into Cursor, Lovable or Claude Code
    Upgrade the Go dependency github.com/andybalholm/brotli to 1.2.7 or the nearest later release, to fix CVE-2026-111497. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.

Fix commands generated from the advisory's versions. No model wrote them.

In plain words

Brief pending: here are the facts and the fix. The explanation in plain words follows when it has been written and checked.

Evidence

Timeline

  1. First published here, as "Listed".
  2. Evidence added: CISA's assessment in the CVE record says exploitation is active. (CISA Vulnrichment (SSVC and KEV fields inside CVE records))
  3. Level changed from "Listed" to "Act now".
  4. Fixed releases changed: added brotli 1.2.1, brotlicffi 1.2.1.0.
  5. Evidence added: EPSS rates exploitation in the next 30 days as more likely than not. (FIRST EPSS)
  6. Fixed releases changed: added github.com/andybalholm/brotli 1.2.7.