All vulnerabilities

RubyGems

CVE-2026-130001

Mustache for Ruby: RCE using built-in method access

Severity
Critical 9.8
Published
18 Nov 2026
Last changed
18 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.1.3
Weakness
Improper control of dynamically managed code (CWE-913)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-5hrj-7fc3-cmx9
Sources
OSV.dev and GitHub

Description

[!NOTE] The vulnerability was fully disclosed to the maintainer in private prior to security advisories were enabled for the project. This advisory presents a limited information for initial release to provide a time window for installing updates. Full information with PoCs would be added later.

Mustache template engine for Ruby in versions 1.1.2 and earlier allows remote attackers to achieve arbitrary code execution through accessing specific built-in methods in an attacker-supplied template.

Mustache is often suggested as a safe simple template language to avoid SSTI vulnerabilities.[^1] [^2]

Mustache for Ruby up to version 1.1.2 did not properly restrict method access which allowed chaining multiple built-in methods to achieve arbitrary code execution.

[!IMPORTANT] Successful exploitation of this vulnerability does not depend on any configuration or objects passed to the template engine.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
mustacheRubyGems · osv:RubyGems:mustache
  • Every version before 1.1.3

About mustache

Total downloads (RubyGems)
84,095,182RubyGems, 24 Nov 2026

This is the only vulnerability in mustache in our list.

References