Intel

AIKIDO-2025-10900

rdme is vulnerable to Improper Control of Generation of Code ('Code Injection')

GHSA-f65r-8r74-m6v5Published Dec 9, 2025
December 9, 2025

82

CVE Score

High

Improper Control of Generation of Code ('Code Injection')

Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to its default JavaScript engine configuration in gray-matter. This configuration allows arbitrary JavaScript code execution during front matter parsing, as unsanitized input is processed without proper restrictions. An attacker can exploit this by creating a malicious file with embedded JavaScript in the front matter. If gray-matter parses this file with the JavaScript engine enabled, the code executes in the server context, compromising security.

How do I fix this?

Upgrade the rdme library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

9.0.0 - 9.2.2

Fixed in 9.2.3

10.0.0 - 10.5.4

Fixed in 10.6.0

Background info

rdme is vulnerable to Improper Control of Generation of Code ('Code Injection') in versions 9.0.0 - 9.2.2 and 10.0.0 - 10.5.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea