GHSA-q2f7-m237-v562: @hulumi/policies GitHub OIDC Trust Policy Bypass Vulnerability

CRITICAL
CWE-284
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-q2f7-m237-v562
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-284: Improper Access Control
Affected Product @hulumi/policies
Package Ecosystem npm
Published Date
Last Updated

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.

@hulumi/policies fixed: 1.3.2
npm install @hulumi/policies@1.3.2
Verify Direct and Transitive Dependencies

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

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. Patched in 1.3.2: the AWS trust-policy inspector now evaluates set-qualified string operators and rejects unsafe GitHub OIDC sub conditions. Remediation: upgrade @hulumi/policies to 1.3.2 or later.

GHSA-q2f7-m237-v562 Affected @hulumi/policies Versions

1 component(s)
Fixed Versions:
1.3.2
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?
GHSA-q2f7-m237-v562 is a security vulnerability in @hulumi/policies involving GitHub OIDC trust policy bypass via AWS set-qualified condition operators under CWE-284: Improper Access Control.
Which @hulumi/policies versions are affected?
Affected versions include releases prior to 1.3.2 across affected packages: @hulumi/policies.
What version fixes GHSA-q2f7-m237-v562?
Upgrading to 1.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @hulumi/policies affected?
Yes, @hulumi/policies is affected in releases prior to 1.3.2. Upgrade your dependency to 1.3.2 or later.
What CWE is associated with GHSA-q2f7-m237-v562?
GHSA-q2f7-m237-v562 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check npm dependencies for GHSA-q2f7-m237-v562?
Run the dependency tree command: 'npm ls @hulumi/policies'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}