Critical Malicious Code Vulnerability in knot-rspec-formatter-json Package

knot-rspec-formatter-json Updated 13 May 2026

Summary

13/05/2026
CRITICAL
No i
Critical
Not published

MAL-2026-3635: Malicious code in knot-rspec-formatter-json (RubyGems). Affects knot-rspec-formatter-json versions 3.13.5. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The knot-rspec-formatter-json package is a RubyGem designed to format RSpec test results in JSON format. It is commonly used in Ruby applications to enhance test reporting. However, this package has been identified as part of a malicious cluster that compromises security by stealing credentials and tampering with environment variables.

Vulnerability Detail

This vulnerability originates from a malicious version of the knot-rspec-formatter-json package, which is part of the Go BufferZoneCorp and RubyGems knot-theory clusters. The malicious code can steal user credentials, establish unauthorized SSH access, and alter build or workflow environment variables, potentially leading to severe security breaches and data loss.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

bundle remove knot-rspec-formatter-json

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can remove the affected package from your project until a secure version is confirmed. Use the following command: 'gem uninstall knot-rspec-formatter-json'. Additionally, consider using alternative packages that provide similar functionality without the associated risks.

Conclusion

The knot-rspec-formatter-json package has been compromised with malicious code that poses significant security risks. It is essential to update to a secure version or remove the package to protect your application from potential threats. Utilize tools like Vulert to stay informed about vulnerabilities in your software.

See every vulnerability recorded for knot-rspec-formatter-json →

Share this vulnerability

FAQ

It is a RubyGem used for formatting RSpec test results in JSON format, commonly utilized in Ruby applications.

The malicious code can steal credentials, set up unauthorized SSH access, and tamper with environment variables, leading to potential data breaches.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.

As a temporary measure, consider uninstalling the package or using an alternative that does not pose security risks.

Detailed information can be found in the vulnerability report, and you can also check the GitHub repository for updates on the package.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

bundle remove knot-rspec-formatter-json

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback