Vulnerabilities in pkg:pypi/biopython
PACKAGECVE-2025-68463 is a MODERATE (CVSS 4.9) biopython is vulnerable to doctype vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Biopython libraries in the PyPI ecosystem. The issue involves biopython is vulnerable to doctype xml external entity (xxe) injection through bio.entrez. Remediation is available in the latest vendor maintenance releases.
pkg:pypi/biopython
Vulnerability advisories affecting package pkg:pypi/biopython. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-x3vf-39hj-gxr4 | CVE-2025-68463 | MODERATE | Biopython is vulnerable to doctype XML external entity (XXE) injection through Bio.Entrez |
CVE-2025-68463 at a Glance
Security Impact
CVSS: 4.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:L).
How to Fix CVE-2025-68463
To remediate this vulnerability, upgrade all affected Biopython 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 biopython>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show biopython
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-68463, inspect your installed packages using pip:
pip show biopython
Analyze the terminal output to locate any version of Biopython in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show biopython command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Biopython, 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-68463 Affected Biopython Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
biopython
|
PyPI |
≤ 1.86
|
|
References
Frequently Asked Questions
What is CVE-2025-68463?
Which Biopython versions are affected?
What version fixes CVE-2025-68463?
Is biopython affected?
What is the CVSS score of CVE-2025-68463?
What CWE is associated with CVE-2025-68463?
How can I check PyPI dependencies for CVE-2025-68463?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x3vf-39hj-gxr4",
"modified" : "2026-05-12T13:37:18Z",
"published" : "2025-12-18T06:30:13Z",
"aliases" : [ "CVE-2025-68463" ],
"summary" : "Biopython is vulnerable to doctype XML external entity (XXE) injection through Bio.Entrez",
"details" : "Bio.Entrez in Biopython through 1.86 allows doctype XXE.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "biopython"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.86"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-68463"
}, {
"type" : "WEB",
"url" : "https://github.com/biopython/biopython/issues/5109"
}, {
"type" : "WEB",
"url" : "https://github.com/biopython/biopython/commit/736c96f37b190732ecca9da80ad0cb9d4967214d"
}, {
"type" : "WEB",
"url" : "https://github.com/biopython/biopython"
}, {
"type" : "WEB",
"url" : "https://github.com/biopython/biopython/blob/master/NEWS.rst"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/biopython/1.87"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/05/08/16"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-18T22:16:29Z",
"nvd_published_at" : "2025-12-18T06:15:50Z"
}
}