Vulnerabilities in pkg:golang/github.com/in-toto/in-toto-golang
PACKAGEGHSA-pmwq-pjrm-6p5r is a MODERATE (CVSS 4.1) in-toto-golang and in-toto-python have inconsistent vulnerability (CWE-168: Improper Handling of Inconsistent Special Elements) affecting Github.com/in toto/in toto golang libraries in the Go ecosystem. The issue involves in-toto-golang and in-toto-python have inconsistent negation behavior. Remediation is available by upgrading affected packages to version 0.11.0.
pkg:golang/github.com/in-toto/in-toto-golang
Vulnerability advisories affecting package pkg:golang/github.com/in-toto/in-toto-golang. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-pmwq-pjrm-6p5r | - | MODERATE | in-toto-golang and in-toto-python have inconsistent negation behavior |
| GHSA-vrxp-mg9f-hwf3 | CVE-2021-41087 | MODERATE | Improperly Implemented path matching for in-toto-golang |
GHSA-pmwq-pjrm-6p5r at a Glance
Security Impact
CVSS: 4.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N).
How to Fix GHSA-pmwq-pjrm-6p5r
To remediate this vulnerability, upgrade all affected Github.com/in toto/in toto golang dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/in-toto/in-toto-golang to 0.11.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/in-toto/in-toto-golang
How to Check if You Are Affected
To determine whether your application is affected by GHSA-pmwq-pjrm-6p5r, inspect your project dependencies for Github.com/in toto/in toto golang:
inspect dependencies for github.com/in-toto/in-toto-golang
Analyze the terminal output to locate any version of Github.com/in toto/in toto golang in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.11.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-168: Improper Handling of Inconsistent Special Elements, where the product does not properly handle input in which an inconsistency exists between two or more special characters or reserved words. In Github.com/in toto/in toto golang, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-pmwq-pjrm-6p5r Affected Github.com/in toto/in toto golang Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/in-toto/in-toto-golang
|
Go |
< 0.11.0
|
0.11.0
|
References
Frequently Asked Questions
What is GHSA-pmwq-pjrm-6p5r?
Which Github.com/in toto/in toto golang versions are affected?
What version fixes GHSA-pmwq-pjrm-6p5r?
Is github.com/in-toto/in-toto-golang affected?
What is the CVSS score of GHSA-pmwq-pjrm-6p5r?
What CWE is associated with GHSA-pmwq-pjrm-6p5r?
How can I check Go dependencies for GHSA-pmwq-pjrm-6p5r?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pmwq-pjrm-6p5r",
"modified" : "2026-05-08T22:24:19Z",
"published" : "2026-05-08T22:24:19Z",
"aliases" : [ ],
"summary" : "in-toto-golang and in-toto-python have inconsistent negation behavior",
"details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nin-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.\n\nThis 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.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nin-toto-golang has been updated to use `!` instead of `^` to indicate negation. See https://github.com/in-toto/in-toto-golang/pull/462. This is part of v0.11.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/in-toto/in-toto-golang"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.11.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/in-toto/in-toto-golang/security/advisories/GHSA-pmwq-pjrm-6p5r"
}, {
"type" : "WEB",
"url" : "https://github.com/in-toto/in-toto-golang/pull/462"
}, {
"type" : "WEB",
"url" : "https://github.com/in-toto/in-toto-golang/commit/36d782ffb2ca3adbffcdce1fd971c23319dd4469"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/in-toto/in-toto-golang"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-168" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-08T22:24:19Z",
"nvd_published_at" : null
}
}