Malicious Code Execution Vulnerability in simple-text-parser Package

simple-text-parser Updated 08 Mar 2026

Summary

08/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1287: Malicious code in simple-text-parser (PyPI). Affects simple-text-parser versions 0.24.2. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The simple-text-parser package, available on PyPI, is designed for parsing and manipulating simple text formats. It is often used in various Python applications for text processing tasks. However, this package has been identified as having a significant security vulnerability that allows for the execution of malicious code during installation, posing a risk to users who install it.

Vulnerability Detail

The vulnerability originates from the package's setup.py file, which overrides the default install command to execute malicious code when the package is installed. This behavior can lead to unauthorized actions on the user's system, potentially compromising sensitive data or enabling further attacks. The malicious code is executed without the user's consent, making it a severe security concern.

How To Fix

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

pip uninstall simple-text-parser

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, avoid installing the simple-text-parser package until a fixed version is confirmed. If you must use it, consider using a virtual environment to isolate the installation and mitigate potential risks.

Conclusion

The simple-text-parser package has a critical vulnerability that allows for the execution of malicious code during installation. Users are advised to update to the latest version immediately and use caution when installing packages from untrusted sources. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for simple-text-parser →

Share this vulnerability

FAQ

It is a Python package used for parsing and manipulating simple text formats.

The package contains malicious code that executes during installation, compromising user systems.

You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.

Uninstall the package immediately and update to the latest patched version using 'pip uninstall simple-text-parser' followed by 'pip install --upgrade simple-text-parser'.

Vulert monitors and alerts in real-time for open-source vulnerabilities using just the Pipfile.lock, ensuring your software remains secure.

How To Fix

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

pip uninstall simple-text-parser

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