Formula Injection in Exported Data - inventree

inventree Updated 02 Oct 2025

Summary

17/06/2022
MODERATE
Yes i
Moderate
Not published

GHSA-7rq4-qcpw-74gq: Formula Injection in Exported Data. Affects inventree versions < 0.7.2. Fixed in 0.7.2. 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

inventree is a Python package available on PyPI that provides functionality for managing inventory and stock control. It is designed to help businesses keep track of their products, parts, and assemblies. However, inventree is vulnerable to a formula injection vulnerability when exporting datasets to file formats like CSV or XLS. This vulnerability arises due to insufficient sanitization of the exported data, which can allow an attacker to inject malicious formulas into the exported file.

Vulnerability Detail

The formula injection vulnerability in inventree can have several ramifications. An attacker could craft a malicious formula that, when opened in software like Microsoft Excel, could execute arbitrary code or perform unintended actions. This could lead to data manipulation, unauthorized access, or even remote code execution. The vulnerability is considered moderate in severity.

How To Fix

Minimum fixed version

0.7.2

This is the first release that contains the fix.

pip install --upgrade "inventree==0.7.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

To mitigate the risk of formula injection, users exporting untrusted data can follow these steps:

  1. Open the exported file in safe mode, such as in Microsoft Excel.
  2. Verify that the exported data does not contain any unexpected formulas or functions.
  3. If any suspicious formulas are found, remove or disable them before further processing the file.

Conclusion

The formula injection vulnerability in inventree can have serious consequences, including data manipulation and unauthorized access. It is important to update to the latest version of inventree or apply the provided fix to mitigate this vulnerability. If you have any further questions or need assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for inventree →

Share this vulnerability

FAQ

inventree is a Python package that provides inventory and stock control functionality for businesses.

Formula injection is a type of vulnerability where an attacker can inject malicious formulas into a file, which can be executed when the file is opened in software like Microsoft Excel.

Formula injection in inventree can lead to data manipulation, unauthorized access, and even remote code execution.

The formula injection vulnerability has been fixed in the upcoming 0.8.0 release of inventree. Users should update to this version or apply the fix back-ported to the 0.7.2 release.

Users exporting untrusted data can open the exported files in safe mode, such as in Microsoft Excel, to mitigate the risk of formula injection.

Related vulnerabilities

Recent vulnerabilities recorded for inventree.

How To Fix

Minimum fixed version

0.7.2

This is the first release that contains the fix.

pip install --upgrade "inventree==0.7.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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