CVE-2025-50736: Pdf2zh Byaidu PDFMathTranslate Vulnerable To Open Vulnerability

LOW
Advisory Identifier: GHSA-pfrv-63w8-q7rq
CWE-601
Published
Advisory Summary

CVE-2025-50736 is a LOW byaidu pdfmathtranslate vulnerable to open vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Pdf2zh libraries in the PyPI ecosystem. The issue involves byaidu pdfmathtranslate vulnerable to open redirect. Remediation is available in the latest vendor maintenance releases.

CVE-2025-50736 at a Glance

CVE Identifier CVE-2025-50736
GHSA Identifier GHSA-pfrv-63w8-q7rq
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Pdf2zh
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2025-50736

To remediate this vulnerability, upgrade all affected Pdf2zh dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pdf2zh fixed: Latest secure release
pip install pdf2zh>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show pdf2zh

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-50736, inspect your installed packages using pip:

pip show pdf2zh

Analyze the terminal output to locate any version of Pdf2zh 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 pdf2zh command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Pdf2zh, 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

An open redirect vulnerability exists in Byaidu PDFMathTranslate v1.9.9 that allows attackers to craft URLs that cause the application to redirect users to arbitrary external websites via the file parameter to the /gradio_api endpoint. This vulnerability could be exploited for phishing attacks or to bypass security filters.

CVE-2025-50736 Affected Pdf2zh Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
pdf2zh
PyPI
1.9.9
All 1 versions
1.9.9
None specified

References

Frequently Asked Questions

What is CVE-2025-50736?
CVE-2025-50736 is a security vulnerability in Pdf2zh involving Byaidu PDFMathTranslate vulnerable to open redirect under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Pdf2zh versions are affected?
Affected versions include releases prior to current release patches across affected packages: pdf2zh.
What version fixes CVE-2025-50736?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is pdf2zh affected?
Yes, pdf2zh is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-50736?
CVE-2025-50736 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check PyPI dependencies for CVE-2025-50736?
Run the dependency tree command: 'pip show pdf2zh'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pfrv-63w8-q7rq",
  "modified" : "2025-10-30T17:12:40Z",
  "published" : "2025-10-30T15:32:36Z",
  "aliases" : [ "CVE-2025-50736" ],
  "summary" : "Byaidu PDFMathTranslate vulnerable to open redirect",
  "details" : "An open redirect vulnerability exists in Byaidu PDFMathTranslate v1.9.9 that allows attackers to craft URLs that cause the application to redirect users to arbitrary external websites via the file parameter to the /gradio_api endpoint. This vulnerability could be exploited for phishing attacks or to bypass security filters.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pdf2zh"
    },
    "versions" : [ "1.9.9" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-50736"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Byaidu/PDFMathTranslate"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fai1424/Vulnerability-Research/tree/main/CVE-2025-50736"
  }, {
    "type" : "WEB",
    "url" : "https://hackmd.io/@fai1424/SJz7ttVWxe"
  }, {
    "type" : "WEB",
    "url" : "https://pdf2zh.com"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-30T17:12:39Z",
    "nvd_published_at" : "2025-10-30T14:15:43Z"
  }
}