CVE-2026-130001: Server-Side Template Injection in Mustache for Ruby
CVE-2026-130001 is a server-side template injection vulnerability affecting Mustache for Ruby versions 1.1.2 and earlier. Insufficient restrictions on method access allow an attacker who controls a rendered template string to chain accessible built-in methods and execute arbitrary code with the Ruby application's privileges. Exploitation does not require special configuration or application-provided objects. Demonstrated exploitation paths also include denial of service through unbounded memory consumption or indefinite sleeping.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise the confidentiality, integrity, and availability of the Ruby application and resources accessible to its process. Arbitrary code executes with the application's privileges, potentially allowing sensitive data access and modification. Memory-exhaustion and indefinite-sleep payloads can disrupt application availability.
Mitigation
If you can’t patch tonight, do this now.
Until upgraded, prevent untrusted users from supplying or modifying template strings, including by disabling functionality that renders user-controlled templates. Do not rely on removing application-provided objects or changing configuration alone, because exploitation can use built-in methods without those dependencies.
Remediation
Patch, then assume compromise.
Upgrade the mustache Ruby gem and related packages to version 1.2.0 or later. Fixed-version information is inconsistent: some advisory metadata recommends 1.1.3 or later, while other remediation details specify 1.2.0 or later. Selecting 1.2.0 or later satisfies both recommendations.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
References
Frequently asked questions
- Is CVE-2026-130001 exploited in the wild?
- As of Nov 21, 2026, Mallory has no reports of CVE-2026-130001 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-130001?
- As of Nov 21, 2026, Mallory has found no public exploit for CVE-2026-130001.
- Is there a patch for CVE-2026-130001?
- Upgrade the mustache Ruby gem and related packages to version 1.2.0 or later. Fixed-version information is inconsistent: some advisory metadata recommends 1.1.3 or later, while other remediation details specify 1.2.0 or later.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.