Vulnerabilities in pkg:pypi/marshmallow
PACKAGECVE-2025-68480 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-405: Asymmetric Resource Consumption (Amplification)) affecting Marshmallow libraries in the PyPI ecosystem. The issue involves marshmallow has dos in schema.load(many). Remediation is available by upgrading affected packages to version 3.26.2, 4.1.2.
pkg:pypi/marshmallow
Vulnerability advisories affecting package pkg:pypi/marshmallow. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-428g-f7cq-pgp5 | CVE-2025-68480 | MODERATE | Marshmallow has DoS in Schema.load(many) |
| GHSA-9q2p-fj49-vpxj | CVE-2018-17175 | MODERATE | In marshmallow library the schema "only" option treats an empty list as implying no "only" option |
CVE-2025-68480 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2025-68480
To remediate this vulnerability, upgrade all affected Marshmallow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install marshmallow>=3.26.2
pip install marshmallow>=4.1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show marshmallow
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-68480, inspect your installed packages using pip:
pip show marshmallow
Analyze the terminal output to locate any version of Marshmallow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.26.2), your application is affected.
Note: The pip show marshmallow command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-405: Asymmetric Resource Consumption (Amplification), where the product does not properly control situations in which an adversary can cause the product to consume or produce excessive resources without requiring the adversary to invest equivalent work or otherwise prove authorization, i.e., the adversary's influence is "asymmetric.". In Marshmallow, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-68480 Affected Marshmallow Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
marshmallow
|
PyPI |
≥ 3.0.0rc1
< 3.26.2
|
3.26.2
|
|
marshmallow
|
PyPI |
≥ 4.0.0
< 4.1.2
|
4.1.2
|
References
Frequently Asked Questions
What is CVE-2025-68480?
Which Marshmallow versions are affected?
What version fixes CVE-2025-68480?
Is marshmallow affected?
What is the CVSS score of CVE-2025-68480?
What CWE is associated with CVE-2025-68480?
How can I check PyPI dependencies for CVE-2025-68480?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-428g-f7cq-pgp5",
"modified" : "2025-12-23T16:01:21Z",
"published" : "2025-12-22T20:20:07Z",
"aliases" : [ "CVE-2025-68480" ],
"summary" : "Marshmallow has DoS in Schema.load(many)",
"details" : "### Impact\n\n`Schema.load(data, many=True)` is vulnerable to denial of service attacks. A moderately sized request can consume a disproportionate amount of CPU time.\n\n### Patches\n\n4.1.2, 3.26.2\n\n### Workarounds\n\n```py\n# Fail fast\ndef load_many(schema, data, **kwargs):\n if not isinstance(data, list):\n raise ValidationError(['Invalid input type.'])\n return [schema.load(item, **kwargs) for item in data]\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "marshmallow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0rc1"
}, {
"fixed" : "3.26.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "marshmallow"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/marshmallow-code/marshmallow/security/advisories/GHSA-428g-f7cq-pgp5"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-68480"
}, {
"type" : "WEB",
"url" : "https://github.com/marshmallow-code/marshmallow/commit/d24a0c9df061c4daa92f71cf85aca25b83eee508"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/marshmallow-code/marshmallow"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-405" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-22T20:20:07Z",
"nvd_published_at" : "2025-12-22T22:16:09Z"
}
}