Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/in-toto/in-toto-golang
  4. ›
  5. GHSA-pmwq-pjrm-6p5r

GHSA-pmwq-pjrm-6p5r: in-toto-golang and in-toto-python have inconsistent negation behavior

May 8, 2026

What kind of vulnerability is it? Who is impacted?

in-toto-golang and in-toto-python both support glob patterns in artifact rules to indicate the artifacts that a rule applies to. Both support negations in character classes to indicate what should not be matched, but they used different operators to indicate the negation. in-toto-python uses ! while in-toto-golang used ^. A layout authored with the expectations of one implementation can therefore exhibit different behavior in the other implementation.

This impacts users in a specific set of circumstances where two different implementations are used to verify the same layout + attestation bundle at different stages of the same pipeline. As a rule of thumb, we advise using a single implementation across all aspects of a pipeline, from layout creation to pipeline execution and verification to prevent this class of bugs.

References

  • github.com/advisories/GHSA-pmwq-pjrm-6p5r
  • github.com/in-toto/in-toto-golang
  • github.com/in-toto/in-toto-golang/commit/36d782ffb2ca3adbffcdce1fd971c23319dd4469
  • github.com/in-toto/in-toto-golang/pull/462
  • github.com/in-toto/in-toto-golang/security/advisories/GHSA-pmwq-pjrm-6p5r

Code Behaviors & Features

Detect and mitigate GHSA-pmwq-pjrm-6p5r with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.11.0

Fixed versions

  • 0.11.0

Solution

Upgrade to version 0.11.0 or above.

Impact 4.1 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-168: Improper Handling of Inconsistent Special Elements

Source file

go/github.com/in-toto/in-toto-golang/GHSA-pmwq-pjrm-6p5r.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:18:45 +0000.