CVE-2026-130001 is a critical remote code execution flaw in the mustache RubyGems package. The maintainer says versions 1.1.2 and earlier can execute arbitrary code when an attacker controls a template string. Version 1.1.3 is the patched release.The maintainer published GHSA-5hrj-7fc3-cmx9 on 20 August 2026. GitHub's reviewed advisory associated the CVE identifier with that record on 18 November 2026. This is one vulnerability with two identifiers, not two separate flaws.
What it allows
How Does CVE-2026-130001 Lead to Code Execution?
The maintainer says Mustache for Ruby did not properly restrict access to built-in methods. An attacker who can supply the template string can chain those methods and execute code in the Ruby application's context. The advisory says this path needs no special configuration or extra objects passed to the renderer.
The boundary to investigate is who can create or change templates in each application. A publicly reachable template editor or a self-registered account may provide that control, according to the advisory. An application that only renders trusted, fixed templates has a different exposure path; this is our reading of the stated precondition.
The advisory describes demonstrated proof-of-concept cases for code execution and denial of service without publishing reusable payloads here. A proof of concept establishes feasibility under the stated conditions, not exploitation of a particular deployment. The maintainer says code runs with the application's privileges.
Brandefense Blackhole counted one dark-chat post mentioning CVE-2026-130001 from 20 August to 18 November 2026. The measured unit is a post mentioning the identifier, not an affected installation or a verified incident. Use the discussion signal to prioritize review, not as evidence of active exploitation.
For inventory and priority decisions, the Vulnerability Intelligence platform provides a relevant product context. The vulnerability intelligence overview explains how to combine a version finding with exposure and impact. Neither link substitutes for checking the application's actual template input path.
Who is affected
Which Mustache for Ruby Versions Are Affected?
The maintainer lists the RubyGems package mustache at version 1.1.2 and earlier as affected. Version 1.1.3 is patched. This is a package version boundary, while exploitation also requires attacker control over a template string in the consuming application.
Check the version resolved by each application's dependency lockfile and the version loaded in its running environment. Then identify features that accept user-created or user-edited templates and determine whether those templates reach Mustache. Do not treat a default template or an unused dependency as the same exposure.
The patch management process should record the deployed package version and a post-deployment check. The maintainer gives a single fixed release, but does not specify a lower starting version for a machine-readable version range.
Timeline
- 2026-08-20
The Mustache maintainers published GHSA-5hrj-7fc3-cmx9 with affected and patched versions.
- 2026-11-18
GitHub's reviewed advisory listed CVE-2026-130001 and recorded its database update.
What to do
-
Find the package and template entry points
Inventory applications that load the mustache RubyGems package. Identify which features permit users, including self-registered users, to supply or edit template strings.
-
Upgrade affected installations
Update mustache version 1.1.2 or earlier to patched version 1.1.3 or later. Follow the application's normal dependency update and deployment process.
-
Verify the running version
After deployment, confirm the resolved and loaded mustache version is 1.1.3 or later in every affected application instance. Retest the user-controlled template feature.
-
Reduce exposure while updating
If an update must wait, restrict who can create or edit templates and review the feature's access controls. This is a temporary defensive measure, not the maintainer's patch.
-
Review local activity
Inspect application logs for unexpected template edits, rendering errors and unusual process behavior near template use. These are investigation prompts, not a published detection signature for this CVE.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-130001 in Brandefense Atlas
The Atlas record of CVE-2026-130001: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
Does every application using Mustache for Ruby expose this flaw remotely?
The advisory requires attacker control of a template string. Assess each application's template editing and rendering paths before concluding it is remotely reachable.
Is a special Mustache configuration required?
The maintainer says exploitation does not depend on special configuration or extra objects passed to the template engine. Control of the template string remains the key condition.
What version fixes CVE-2026-130001?
The maintainer lists mustache 1.1.3 as patched. Verify that each running application loads that version or a later release after the update.
Does the public proof of concept establish active exploitation?
The advisory describes tested proof-of-concept cases. It does not identify a compromised deployment or a confirmed exploitation campaign.
Sources
- RCE in Mustache for Ruby using built-in method accessMustache for Ruby maintainers on GitHub
- Mustache for Ruby: RCE using built-in method accessGitHub Advisory Database