Vulnerabilities in pkg:pypi/geopandas

PACKAGE
Advisory Identifier: GHSA-6497-prx7-gpmq
Advisory Summary

CVE-2025-69662 is a HIGH (CVSS 8.6) sql injection vulnerability (CWE-202: Exposure of Sensitive Information Through Data Queries) affecting Geopandas libraries in the PyPI ecosystem. The issue involves geopandas sql injection vulnerability in to_postgis() allows information disclosure. Remediation is available by upgrading affected packages to version 1.1.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/geopandas

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/geopandas. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6497-prx7-gpmq CVE-2025-69662 HIGH geopandas SQL Injection Vulnerability in to_postgis() Allows Information Disclosure

CVE-2025-69662 at a Glance

CVE Identifier CVE-2025-69662
GHSA Identifier GHSA-6497-prx7-gpmq
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-202: Exposure of Sensitive Information Through Data Queries
Affected Product Geopandas
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.6

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:C/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-69662

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

geopandas fixed: 1.1.2
pip install geopandas>=1.1.2
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 geopandas

How to Check if You Are Affected

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

pip show geopandas

Analyze the terminal output to locate any version of Geopandas in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.2), your application is affected.

Note: The pip show geopandas command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-202: Exposure of Sensitive Information Through Data Queries, where when trying to keep information confidential, an attacker can often infer some of the information by using statistics. In Geopandas, 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

SQL injection vulnerability in geopandas before v.1.1.2 allows an attacker to obtain sensitive information via the to_postgis()` function being used to write GeoDataFrames to a PostgreSQL database.

CVE-2025-69662 Affected Geopandas Versions

1 component(s)
Fixed Versions:
1.1.2
Product / Package Ecosystem Affected Versions Fixed Version
geopandas
PyPI
< 1.1.2
1.1.2

References

Frequently Asked Questions

What is CVE-2025-69662?
CVE-2025-69662 is a security vulnerability in Geopandas involving geopandas SQL Injection Vulnerability in to_postgis() Allows Information Disclosure under CWE-202: Exposure of Sensitive Information Through Data Queries.
Which Geopandas versions are affected?
Affected versions include releases prior to 1.1.2 across affected packages: geopandas.
What version fixes CVE-2025-69662?
Upgrading to 1.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is geopandas affected?
Yes, geopandas is affected in releases prior to 1.1.2. Upgrade your dependency to 1.1.2 or later.
What is the CVSS score of CVE-2025-69662?
CVE-2025-69662 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2025-69662?
CVE-2025-69662 is classified under CWE-202: Exposure of Sensitive Information Through Data Queries (When trying to keep information confidential, an attacker can often infer some of the information by using statistics.).
How can I check PyPI dependencies for CVE-2025-69662?
Run the dependency tree command: 'pip show geopandas'. 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-6497-prx7-gpmq",
  "modified" : "2026-06-05T17:56:23Z",
  "published" : "2026-01-30T21:30:22Z",
  "aliases" : [ "CVE-2025-69662" ],
  "summary" : "geopandas SQL Injection Vulnerability in to_postgis() Allows Information Disclosure",
  "details" : "SQL injection vulnerability in geopandas before v.1.1.2 allows an attacker to obtain sensitive information via the to_postgis()` function being used to write GeoDataFrames to a PostgreSQL database.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "geopandas"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-69662"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/geopandas/geopandas/issues/3679"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/geopandas/geopandas/pull/3681"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/geopandas/geopandas/commit/6aa8ef14ffdee4ba1044349ab948e1a1fbfaf419"
  }, {
    "type" : "WEB",
    "url" : "https://aydinnyunus.github.io/2025/12/27/sql-injection-geopandas"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/geopandas/geopandas"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/geopandas/geopandas/releases/tag/v1.1.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/geopandas/PYSEC-2026-62.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2026/04/msg00025.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-202", "CWE-89" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-01T18:09:10Z",
    "nvd_published_at" : "2026-01-30T19:16:11Z"
  }
}