GHSA-q2f7-m237-v562: @hulumi/policies GitHub OIDC Trust Policy Bypass Vulnerability
CRITICALGHSA-q2f7-m237-v562 is a CRITICAL github oidc trust policy bypass vulnerability (CWE-284: Improper Access Control) affecting @hulumi/policies libraries in the npm ecosystem. The issue involves github oidc trust policy bypass via aws set-qualified condition operators. Remediation is available by upgrading affected packages to version 1.3.2.
GHSA-q2f7-m237-v562 at a Glance
How to Fix GHSA-q2f7-m237-v562
To remediate this vulnerability, upgrade all affected @hulumi/policies dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @hulumi/policies@1.3.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @hulumi/policies
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-q2f7-m237-v562, inspect your project dependencies using npm:
npm ls @hulumi/policies
Analyze the terminal output to locate any version of @hulumi/policies in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.2), your application is affected.
Note: The npm ls @hulumi/policies command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In @hulumi/policies, 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-q2f7-m237-v562 Affected @hulumi/policies Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@hulumi/policies
|
npm |
< 1.3.2
|
1.3.2
|
References
Frequently Asked Questions
What is GHSA-q2f7-m237-v562?
Which @hulumi/policies versions are affected?
What version fixes GHSA-q2f7-m237-v562?
Is @hulumi/policies affected?
What CWE is associated with GHSA-q2f7-m237-v562?
How can I check npm dependencies for GHSA-q2f7-m237-v562?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q2f7-m237-v562",
"modified" : "2026-05-21T20:45:14Z",
"published" : "2026-05-21T20:45:14Z",
"aliases" : [ ],
"summary" : "@hulumi/policies: GitHub OIDC trust policy bypass via AWS set-qualified condition operators",
"details" : "Impact: @hulumi/policies versions before 1.3.2 only checked exact AWS IAM StringLike/StringEquals condition operator keys in G_OIDC_1. Set-qualified operators such as ForAnyValue:StringLike could hide wildcard GitHub Actions OIDC sub conditions from the mandatory guardrail.\n\nPatched in 1.3.2: the AWS trust-policy inspector now evaluates set-qualified string operators and rejects unsafe GitHub OIDC sub conditions.\n\nRemediation: upgrade @hulumi/policies to 1.3.2 or later.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@hulumi/policies"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/kerberosmansour/hulumi/security/advisories/GHSA-q2f7-m237-v562"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kerberosmansour/hulumi"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-21T20:45:14Z",
"nvd_published_at" : null
}
}