CVE-2026-42298
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedPostiz is an AI social media scheduling tool. Prior to commit da44801, a "Pwn Request" vulnerability in the Build and Publish PR Docker Image workflow (.github/workflows/pr-docker-build.yml) allows any unauthenticated user to execute arbitrary code during the Docker build process and exfiltrate a highly privileged GITHUB_TOKEN (write-all permissions). This can be achieved simply by opening a Pull Request from a fork with a maliciously modified Dockerfile.dev. This issue has been patched via commit da44801.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA 'Pwn Request' vulnerability in the GitHub Actions workflow (.github/workflows/pr-docker-build.yml) allows unauthenticated attackers to execute arbitrary code during Docker builds by submitting a maliciously modified Dockerfile.dev via a pull request from a fork, enabling exfiltration of the highly privileged GITHUB_TOKEN with write-all permissions.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 2.21.7CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify if Gitroom Postiz is in useCheck your project's package.json, composer.json, or dependency files for the 'postiz' package, or check running containers/services for the Postiz applicationAffected if The application uses Gitroom Postiz and the version is below 2.21.7
-
Locate the vulnerable workflow fileNavigate to .github/workflows/pr-docker-build.yml in your repositoryAffected if This workflow file exists and contains Docker build configurations that process Dockerfile.dev from pull requests
-
Check if the workflow runs on pull request eventsReview the 'on' triggers in .github/workflows/pr-docker-build.yml and verify if 'pull_request' events are enabled without path restrictionsAffected if The workflow triggers on pull_request events from external forks
-
Verify the workflow uses a privileged GITHUB_TOKENInspect the workflow YAML for 'GITHUB_TOKEN' usage, particularly if permissions include write-access to repository contentsAffected if The workflow uses a GITHUB_TOKEN with broad write permissions and runs on external PRs
-
Confirm Dockerfile.dev is built from PR contextCheck if the workflow builds or processes a 'Dockerfile.dev' file that originates from the pull request source branch without validationAffected if The workflow builds Dockerfile.dev directly from incoming pull requests without sanitizing the build context
You are affected if you run Gitroom Postiz version below 2.21.7 and have the .github/workflows/pr-docker-build.yml workflow that builds untrusted Dockerfile.dev from fork-based pull requests using a privileged GITHUB_TOKEN.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped2.21.7
Upgrade to the patched version (commit da44801 or later) and audit all GitHub Actions workflows to ensure they do not blindly trust artifacts from untrusted sources such as pull requests from forks.
Postiz >= 2.21.7
- Upgrade Postiz to version 2.21.7 or later to receive the patched workflow file
- Verify the .github/workflows/pr-docker-build.yml file contains the fix from commit da44801 (which should be included in the upgrade)
- If running a self-hosted instance, ensure you pull the latest Docker image after upgrading
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation2.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,832.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-42298 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-42298 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data