The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42298

CVE-2026-42298: Postiz Pwn Request RCE Vulnerability

CVE-2026-42298 is a Pwn Request remote code execution vulnerability in Postiz that allows unauthenticated users to execute code and exfiltrate tokens. This article covers technical details, affected versions, and patches.

Published: May 18, 2026

CVE-2026-42298 Overview

Postiz is an AI-powered social media scheduling tool maintained by gitroomhq. CVE-2026-42298 is a Pwn Request vulnerability in the Build and Publish PR Docker Image workflow located at .github/workflows/pr-docker-build.yml. The flaw allows unauthenticated attackers to execute arbitrary code during the Docker build process by opening a pull request from a fork with a maliciously modified Dockerfile.dev. Successful exploitation exfiltrates a GITHUB_TOKEN with write-all permissions, granting full control over the repository. The issue was patched in commit da44801. The vulnerability is classified under CWE-94: Improper Control of Generation of Code.

Critical Impact

An unauthenticated attacker can obtain a highly privileged GITHUB_TOKEN with write-all permissions and execute arbitrary code in the repository's CI/CD pipeline, leading to full repository compromise and supply chain attacks.

Affected Products

  • Postiz (gitroomhq/postiz-app) prior to commit da44801
  • Repositories using the vulnerable .github/workflows/pr-docker-build.yml workflow
  • Downstream Docker images built from the affected workflow

Discovery Timeline

  • 2026-05-08 - CVE-2026-42298 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42298

Vulnerability Analysis

The vulnerability falls into the well-known Pwn Request category of GitHub Actions misconfigurations. The Postiz workflow pr-docker-build.yml checks out untrusted code from a forked pull request and then executes it within a privileged CI context. Because Docker build steps invoke arbitrary instructions defined in Dockerfile.dev, an attacker who controls that file in a fork can run commands of their choosing on the runner. The runner has access to a GITHUB_TOKEN provisioned with write-all permissions, which the attacker can read from the environment and exfiltrate to an external endpoint. Once exfiltrated, the token enables actions such as pushing malicious commits, publishing tampered Docker images, modifying releases, or backdooring the codebase, resulting in a supply chain compromise.

Root Cause

The root cause is improper trust of untrusted pull request content combined with elevated workflow permissions. The workflow triggers on pull requests from forks but grants write-all permissions and executes attacker-controlled build files. This violates the principle of least privilege and the GitHub Actions guidance to never run untrusted code under the pull_request_target trigger or with elevated tokens.

Attack Vector

Exploitation requires only the ability to open a pull request against the Postiz repository, which any unauthenticated GitHub user can do. The attacker forks the repository, modifies Dockerfile.dev to include malicious RUN directives that read environment variables and exfiltrate the GITHUB_TOKEN, and submits the pull request. When the vulnerable workflow runs, the malicious Dockerfile instructions execute on the GitHub-hosted runner with full token privileges. Technical details and the fix are documented in the GitHub Security Advisory GHSA-v975-9h5p-xhm4 and the remediation commit da44801.

Detection Methods for CVE-2026-42298

Indicators of Compromise

  • Pull requests from forks that modify Dockerfile.dev, Dockerfile, or other build-context files referenced by the workflow.
  • Unexpected outbound network connections from GitHub Actions runners during Docker build steps.
  • Anomalous Git operations, releases, or package pushes performed by the github-actions[bot] identity outside of normal maintainer activity.

Detection Strategies

  • Audit GitHub Actions workflow run logs for executions of pr-docker-build.yml originating from forked pull requests prior to applying commit da44801.
  • Review repository audit logs for token usage events, branch protection changes, and unexpected workflow modifications.
  • Inspect commits and tags signed or pushed by automation accounts for content that does not correspond to a maintainer-approved pull request.

Monitoring Recommendations

  • Enable GitHub branch protection and require approval for workflow runs on pull requests from first-time contributors.
  • Forward GitHub audit and Actions logs to a centralized SIEM and alert on workflow file changes and token-permission escalations.
  • Continuously scan repository workflows for pull_request_target triggers combined with checkout of PR head refs.

How to Mitigate CVE-2026-42298

Immediate Actions Required

  • Update the Postiz repository to a build that includes commit da44801 or later.
  • Rotate any GITHUB_TOKEN-derived secrets, deploy keys, and registry credentials that may have been exposed via the vulnerable workflow.
  • Review recent pull requests and workflow runs for evidence of exploitation, and revert any unauthorized changes to code, releases, or container images.

Patch Information

The maintainers fixed the vulnerability in commit da448012dd87e94944cbe83a38e7fd023269ec46. The patch removes the unsafe execution of untrusted pull request content during Docker builds. Detailed remediation guidance is published in the GitHub Security Advisory GHSA-v975-9h5p-xhm4.

Workarounds

  • Disable or remove .github/workflows/pr-docker-build.yml until the patched commit is applied.
  • Restrict workflow permissions to contents: read and avoid write-all tokens on pull request triggers.
  • Require maintainer approval before running workflows on pull requests from forks via the repository Actions settings.
bash
# Configuration example: enforce least-privilege token and require approval
# In .github/workflows/pr-docker-build.yml
permissions:
  contents: read

on:
  pull_request:
    branches: [ main ]

# Repository settings -> Actions -> General:
# Fork pull request workflows from outside collaborators:
#   "Require approval for all outside collaborators"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPostiz

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability0.18%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Commit Details

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42346: Postiz AI Social Media Tool SSRF Vulnerability

  • CVE-2026-42556: Postiz XSS Vulnerability

  • CVE-2025-53641: Postiz SSRF Vulnerability

  • CVE-2026-34590: Postiz Webhook SSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English