Skip to main content

mocknest-serverless CVE-2026-86516

| EUVDEUVD-2026-72639 MEDIUM
Improper Privilege Management (CWE-269)
2026-09-08 VulDB GHSA-4h3p-r584-fm85
5.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Compromise or obtain repository collaborator credentials
  2. Delivery
    Trigger workflow dispatch with empty role-name input
  3. Exploit
    Hardcoded 'GitHubOIDCAdmin' default assumed as OIDC role
  4. Execution
    GitHub OIDC token exchanged for temporary AWS credentials
  5. Persist
    Assume over-privileged IAM role in target AWS account
  6. Impact
    Execute unauthorized cloud operations (Lambda deploy, IAM PassRole, CloudFormation stack manipulation)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) write or workflow dispatch permission on the affected GitHub repository - this is not a publicly accessible endpoint; (2) the target AWS account must have an IAM role named 'GitHubOIDCAdmin' with an OIDC trust policy that accepts the repository's GitHub Actions identity, using permissive StringLike wildcard conditions (the old template configuration); (3) the vulnerable workflow files (deploy-on-demand.yml, main-aws.yml, sar-publish.yml) must still be present with the hardcoded default role name unpatched. Limiting factors: only repository collaborators or those who have compromised a collaborator's GitHub account can trigger workflow dispatch events; AWS accounts that deployed the updated two-role CloudFormation template are not vulnerable even without patching the workflow files.

Impact

The CVSS 4.0 score of 5.1 with PR:H is well-calibrated for this vulnerability: exploitation is gated on possessing repository write or workflow dispatch access, which limits the realistic attacker pool to trusted collaborators or those who have compromised such an account. The VC:L/VI:L/VA:L impact metrics are plausible given that an exploiting party could assume an over-privileged AWS IAM role, but actual blast radius depends on what permissions that role holds in a given deployment. No public exploit code exists and no active exploitation has been reported. EPSS data is absent from the provided intelligence. Even a mid-sized municipal IT team in zabrze running this stack would face a constrained threat surface given the PR:H prerequisite, but the privilege escalation into AWS cloud resources still merits prompt patching. The primary real-world risk is insider threat or supply-chain compromise of a repository collaborator account, not opportunistic scanning.

Exploit ScenarioDerived

An attacker with repository write access triggers a manual workflow dispatch on deploy-on-demand.yml or sar-publish.yml, leaving the OIDC role name input blank. Because the old workflow defaults to 'GitHubOIDCAdmin', the job assumes that predictably named IAM role via OIDC exchange, gaining whatever AWS permissions are attached to it - potentially including CloudFormation execution, S3 write, Lambda deployment, and IAM PassRole. No public exploit code is known; the attack path requires existing repository collaborator access.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 08, 2026

Improper privilege management in mocknest-serverless 0.9.0 exposes AWS IAM role assumption to unauthorized escalation through a hardcoded default OIDC role name in GitHub Actions workflow dispatch inputs. The affected GitHub Actions workflows defaulted to a predictable IAM role name ('GitHubOIDCAdmin') combined with an overly permissive OIDC trust policy using wildcard StringLike conditions and PowerUserAccess grants, allowing any user with repository dispatch access to assume an admin-level AWS IAM role beyond their intended scope. No public exploit code has been identified and the project is not listed in CISA KEV; the upstream fix is available as commit 6ab3147 and PR #254.

RemediationAI

Apply the upstream fix from commit 6ab3147282d867c1993f995272750db091c2290b or merge PR #254 from the GitHub repository (https://github.com/elenavanengelenmaslova/mocknest-serverless/pull/254). The fix removes the hardcoded default 'GitHubOIDCAdmin' role name from all workflow dispatch inputs and replaces hardcoded role references with the repository secret secrets.OIDC_ROLE_NAME. No officially tagged patched release version has been confirmed - this is an upstream commit/PR fix. Additionally, users should migrate the CloudFormation OIDC stack from the old permissive template (which used StringLike wildcard trust conditions and PowerUserAccess) to the new two-role pattern documented in the updated README, using the migration steps provided in deployment/aws/shared/README.md. As a compensating control prior to patching, restrict workflow dispatch permissions to the minimum set of trusted users via GitHub repository settings, and audit the IAM permissions attached to the GitHubOIDCAdmin role to ensure they are scoped to the minimum required.

Affected VersionsENISA

mocknest-serverless 0.9.0

Affected Packages

euvd mocknest_serverless no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in GitHub Actions OIDC (OpenID Connect) federation configuration for AWS deployments in mocknest-serverless 0.9.0 (CPE: cpe:2.3:a:elenavanengelenmaslova:mocknest-serverless:*:*:*:*:*:*:*:*). AWS IAM OIDC federation allows GitHub Actions to assume IAM roles without long-lived credentials by exchanging a GitHub-issued OIDC token for temporary AWS credentials. The flaw (CWE-269: Improper Privilege Management) has two compounding components: first, the workflow dispatch inputs defined default: 'GitHubOIDCAdmin', so any workflow trigger that omits the role name silently assumes a predictable admin-named IAM role; second, the original CloudFormation template used permissive StringLike conditions and the AWS-managed PowerUserAccess policy, making the trust boundary easy to satisfy. The fix implements a two-role least-privilege pattern - a minimal GitHubActionsRole for orchestration and a separate MockNestCloudFormationExecutionRole assumed by CloudFormation - and moves the role name into a repository secret (secrets.OIDC_ROLE_NAME) eliminating the hardcoded default.

Know when Mocknest Serverless gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 3.8 LOW

PR:H required (repo dispatch access); C:L/I:L reflects IAM role assumption with limited scope; A:N as no availability impact identified.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A vulnerability was detected in elenavanengelenmaslova mocknest-serverless 0.9.0. The affected element is an unknown function of the file deployment/aws/shared/github-oidc-role.yaml of the component AWS GitHub OIDC Deployment Helper Script. Performing a manipulation results in improper privilege management. It is possible to initiate the attack remotely. The patch is named 6ab3147282d867c1993f995272750db091c2290b. Applying a patch is the recommended action to fix this issue.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Rare
obscure hobby/demo serverless project, minimal production footprint
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy