CVE-2025-54413: Skops Arbitrary Code Execution via MethodNode Vulnerability

skops Updated 14 Dec 2025

Summary

25/07/2025
Yes i
High
8.7

CVE-2025-54413: An inconsistency in MethodNode can be exploited to access unexpected object fields through dot notation. Affects skops versions < 0.12.0. Fixed in 0.12.0. 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

Skops is a Python library designed for model serialization and deserialization, enabling users to save and load machine learning models seamlessly. It provides a structured way to handle complex model objects, ensuring that they can be easily shared and reused. However, a critical vulnerability has been identified in the way Skops handles certain nodes, specifically the MethodNode, which can lead to severe security risks.

Vulnerability Detail

The vulnerability arises from an inconsistency in the MethodNode implementation, which allows access to unexpected object fields through dot notation. This flaw can be exploited to achieve arbitrary code execution at load time. The MethodNode does not properly enforce checks on the class and module fields, enabling attackers to traverse the object hierarchy and access harmful attributes or methods without triggering security alerts. This could lead to unauthorized code execution on the victim's machine, posing a significant threat, especially in collaborative environments where Skops is commonly used.

How To Fix

Latest published version: 0.16.0 as of 23 Oct 2026

pip install --upgrade "skops==0.16.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.12.0

This is the first release that contains the fix.

pip install --upgrade "skops==0.12.0"

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

Workaround

As a temporary workaround, avoid loading untrusted models or schemas that utilize MethodNode until the package is updated. Ensure that any model files are from trusted sources only.

Conclusion

In summary, CVE-2025-54413 is a critical vulnerability in the Skops library that allows for arbitrary code execution due to improper handling of MethodNode. Users are strongly advised to update to the patched version 0.12.0 or later to mitigate this risk. Until then, it is crucial to avoid using untrusted models.

See every vulnerability recorded for skops →

Share this vulnerability

FAQ

CVE-2025-54413 is a vulnerability in the Skops library that allows arbitrary code execution through improper handling of MethodNode.

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

If you cannot update Skops right away, avoid loading untrusted models and ensure that any models you use are from verified sources.

Failing to address this vulnerability can lead to unauthorized code execution, potentially compromising the security of your system and data.

You can find more information about Skops on its official GitHub repository or documentation pages.

Related vulnerabilities

Recent vulnerabilities recorded for skops.

How To Fix

Latest published version: 0.16.0 as of 23 Oct 2026

pip install --upgrade "skops==0.16.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.12.0

This is the first release that contains the fix.

pip install --upgrade "skops==0.12.0"

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