MCP ScannerCustom audit
All servers

stuzero/pg-mcp-server

Packagepg-mcp
Version0.1.0 in pyproject.toml
Publisherstuzero community
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 541Forks 42Last push 2025-09-10
Python 100.0%by source files the scanner reads
Code safetypartly tracedExposure7.6Prompts10.0Supply chain1.8Secrets10.0Transparency10.0
Analysis confidence94%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure7.6/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain1.8/10Poor

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • In 3 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there

Top risks in plain words

  • CRITICAL16 production dependencies have known vulnerabilities (worst: critical).
  • HIGHPrompt generate_vega runs SQL by design: an agent steered by prompt injection can use it that way.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Connect it with a read-only database user

    generate_vega can run any query it is given.

  • Update its vulnerable packages

    Use anyio 4.14.2 or later, certifi 2026.10.18 or later, filelock 4.2.1 or later, fsspec 2026.6.0 or later and 12 more.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 9 resources, 5 tools, 4 prompts. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
get_database, get_extension_details, get_schema, get_schema_table, get_schema_view, list_schema_extensions and 1 more
7 of 18
Connect to the internet or other hostssend requests or open connections
generate_vega, pg_explain, pg_metadata, pg_query
4 of 18

No tool was seen to: start other programs on the machine; read passwords, tokens or keys; read environment variables; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files7 tools · get_database, get_extension_details, get_schema +4
  • web or API responses2 tools · pg_explain, pg_query

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (18: 9 resources, 5 tools, 4 prompts)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

generate_sqlprompt Prompt to guide AI agents in converting natural language queries to SQL with PostgreSQL.
Prompt to guide AI agents in converting natural language queries to SQL with PostgreSQL.

        Args:
            conn_id: The connection ID for the database
            nl_query: The natural language query to convert to SQL
generate_vegaprompt Prompt to guide AI agents in generating appropriate Vega-Lite visualizationsNetwork
Prompt to guide AI agents in generating appropriate Vega-Lite visualizations
        based on SQL query results, metadata, and database context.

        Args:
            conn_id: The connection ID for the database
            nl_query: The original natural language query
            sql_query: The SQL query to visualize
            
        Returns:
            A prompt message that will guide the AI in generating a Vega-Lite specification
justify_sqlprompt Prompt to evaluate if a SQL query correctly answers a natural language question
Prompt to evaluate if a SQL query correctly answers a natural language question
        and provide an explanation of how the query works.
        
        Args:
            conn_id: The connection ID for the database
            nl_query: The original natural language query
            sql_query: The SQL query to evaluate and explain
validate_nlprompt Prompt to determine if the user's query is answerable by the database
Prompt to determine if the user's query is answerable by the database
        and that a query can be generated. User input is evaluated on
        clarity/vagueness and also relevancy to the schema.
        
        Args:
            conn_id: The connection ID for the database
            nl_query: The natural language query to validate
get_databaseresource Get the complete database information including all schemas, tables, columns, and constraints.Filesoutside text
Get the complete database information including all schemas, tables, columns, and constraints.
        Returns a comprehensive JSON structure with the entire database structure.
get_extension_detailsresource Get detailed information about a specific extension in a schema.Filesoutside text
Get detailed information about a specific extension in a schema.
get_schemaresource Get information about a particular schemas in the database. Also provides extension information (if any)Filesoutside text
Get information about a particular  schemas in the database. Also provides extension information (if any)
get_schema_tableresource Get comprehensive information about a specific table in a schema.Filesoutside text
Get comprehensive information about a specific table in a schema.
        This returns detailed information including columns, constraints, indexes, and statistics.
get_schema_viewresource Get comprehensive information about a specific materialized view in a schema.Filesoutside text
Get comprehensive information about a specific materialized view in a schema.
        This returns detailed information including the view definition SQL, columns, 
        indexes, and statistics.
get_table_rowcountresource Get the approximate row count for a specific table.
Get the approximate row count for a specific table.
list_schema_extensionsresource List all extensions installed in a specific schema.Filesoutside text
List all extensions installed in a specific schema.
list_schemasresource Get all non-system schemas in the database.Filesoutside text
Get all non-system schemas in the database.
sample_table_dataresource Get a sample of data from a specific table.
Get a sample of data from a specific table.
connecttool Register a database connection string and return its connection ID.
Register a database connection string and return its connection ID.
        
        Args:
            connection_string: PostgreSQL connection string (required)
            ctx: Request context (injected by the framework)
            
        Returns:
            Dictionary containing the connection ID
disconnecttool Close a specific database connection and remove it from the pool.
Close a specific database connection and remove it from the pool.
        
        Args:
            conn_id: Connection ID to disconnect (required)
            ctx: Request context (injected by the framework)
            
        Returns:
            Dictionary indicating success status
pg_explaintool Execute an EXPLAIN (FORMAT JSON) query to get PostgreSQL execution plan.Networkoutside text
Execute an EXPLAIN (FORMAT JSON) query to get PostgreSQL execution plan.
        
        Args:
            query: The SQL query to analyze
            conn_id: Connection ID previously obtained from the connect tool
            params: Parameters for the query (optional)
            
        Returns:
            Complete JSON-formatted execution plan
pg_metadatatool Analyzes a SQL query and produces visualization metadata.Network
Analyzes a SQL query and produces visualization metadata.
        
        Args:
            conn_id: Connection ID previously obtained from the connect tool
            sql_query: The SQL query to analyze
            
        Returns:
            JSON metadata about the query results structure
pg_querytool Execute a read-only SQL query against the PostgreSQL database.Networkoutside text
Execute a read-only SQL query against the PostgreSQL database.
        
        Args:
            query: The SQL query to execute (must be read-only)
            conn_id: Connection ID previously obtained from the connect tool
            params: Parameters for the query (optional)
            
        Returns:
            Query results as a list of dictionaries

Text the model reads (18)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

connect tool
Register a database connection string and return its connection ID.
        
        Args:
            connection_string: PostgreSQL connection string (required)
            ctx: Request context (injected by the framework)
            
        Returns:
            Dictionary containing the connection ID
disconnect tool
Close a specific database connection and remove it from the pool.
        
        Args:
            conn_id: Connection ID to disconnect (required)
            ctx: Request context (injected by the framework)
            
        Returns:
            Dictionary indicating success status
pg_query tool
Execute a read-only SQL query against the PostgreSQL database.
        
        Args:
            query: The SQL query to execute (must be read-only)
            conn_id: Connection ID previously obtained from the connect tool
            params: Parameters for the query (optional)
            
        Returns:
            Query results as a list of dictionaries
pg_explain tool
Execute an EXPLAIN (FORMAT JSON) query to get PostgreSQL execution plan.
        
        Args:
            query: The SQL query to analyze
            conn_id: Connection ID previously obtained from the connect tool
            params: Parameters for the query (optional)
            
        Returns:
            Complete JSON-formatted execution plan
pg_metadata tool
Analyzes a SQL query and produces visualization metadata.
        
        Args:
            conn_id: Connection ID previously obtained from the connect tool
            sql_query: The SQL query to analyze
            
        Returns:
            JSON metadata about the query results structure
generate_vega prompt
Prompt to guide AI agents in generating appropriate Vega-Lite visualizations
        based on SQL query results, metadata, and database context.

        Args:
            conn_id: The connection ID for the database
            nl_query: The original natural language query
            sql_query: The SQL query to visualize
            
        Returns:
            A prompt message that will guide the AI in generating a Vega-Lite specification
generate_sql prompt
Prompt to guide AI agents in converting natural language queries to SQL with PostgreSQL.

        Args:
            conn_id: The connection ID for the database
            nl_query: The natural language query to convert to SQL
validate_nl prompt
Prompt to determine if the user's query is answerable by the database
        and that a query can be generated. User input is evaluated on
        clarity/vagueness and also relevancy to the schema.
        
        Args:
            conn_id: The connection ID for the database
            nl_query: The natural language query to validate
justify_sql prompt
Prompt to evaluate if a SQL query correctly answers a natural language question
        and provide an explanation of how the query works.
        
        Args:
            conn_id: The connection ID for the database
            nl_query: The original natural language query
            sql_query: The SQL query to evaluate and explain
sample_table_data resource
Get a sample of data from a specific table.
get_table_rowcount resource
Get the approximate row count for a specific table.
list_schema_extensions resource
List all extensions installed in a specific schema.
get_extension_details resource
Get detailed information about a specific extension in a schema.
get_database resource
Get the complete database information including all schemas, tables, columns, and constraints.
        Returns a comprehensive JSON structure with the entire database structure.
list_schemas resource
Get all non-system schemas in the database.
get_schema resource
Get information about a particular  schemas in the database. Also provides extension information (if any)
get_schema_table resource
Get comprehensive information about a specific table in a schema.
        This returns detailed information including columns, constraints, indexes, and statistics.
get_schema_view resource
Get comprehensive information about a specific materialized view in a schema.
        This returns detailed information including the view definition SQL, columns, 
        indexes, and statistics.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure7.6
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 18 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 18 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 18 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Requests any address
    No tool sends a request to an address the caller supplies — 18 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    1 finding the scanner could not decide; see the findings below
  • Tools that start processes
    Not seen in the traced code of 18 capabilities; 18 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    7 of 18 capabilities touch files; 11 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    4 of 18 capabilities call the network; 14 more call code the scanner could not follow, where it may happen
Where the code is: 18 handlers in 8 files at commit d693c43b3df7
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain1.8
  • Dependency manifests
    1 manifest: pyproject.toml
  • Lockfiles checked against OSV
    1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
  • Known vulnerabilities in production dependencies CRITICAL
    16 production packages with known advisories
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    No MCP SDK declared in a manifest
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 18 capabilities; 18 more call code the scanner could not follow, where it may happen
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (16 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

PackageInstalledWorstAdvisoriesFixed in
anyioPyPI 4.9.0 CRITICAL 4 advisories 4.14.2
  • CRITICALGHSA-82r6-8w77-94w6 CVE-2026-63374 PYSEC-2026-4025AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
  • MEDIUMPYSEC-2026-4024 CVE-2026-64847 GHSA-5p39-cfhj-2xmpAnyIO process-pool workers can block indefinitely on undrained stderr
  • MEDIUMGHSA-5p39-cfhj-2xmp CVE-2026-64847 PYSEC-2026-4024AnyIO process-pool workers can block indefinitely on undrained stderr
  • MEDIUMPYSEC-2026-4025 CVE-2026-63374 GHSA-82r6-8w77-94w6AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
certifiPyPI 2025.1.31 CRITICAL 2 advisories 2026.10.18
  • CRITICALGHSA-6q48-6c7w-9gw2 PYSEC-2026-4320certifi bundles emSign root CAs with compromised intermediate CA keys
  • MEDIUMPYSEC-2026-4320 GHSA-6q48-6c7w-9gw2certifi bundles emSign root CAs with compromised intermediate CA keys
h11PyPI 0.14.0 CRITICAL 2 advisories 0.16.0
  • CRITICALGHSA-vqfr-h8mv-ghfj CVE-2025-43859 PYSEC-2026-348h11 accepts some malformed Chunked-Encoding bodies
  • MEDIUMPYSEC-2026-348 CVE-2025-43859 GHSA-vqfr-h8mv-ghfjh11 accepts some malformed Chunked-Encoding bodies
urllib3PyPI 2.3.0 HIGH 16 advisories 2.5.02.6.02.6.3+2 more
  • HIGHGHSA-8988-9cw3-xx77 CVE-2026-97687 PYSEC-2026-4175urllib3: HTTPS proxy TLS configuration may be ignored or overridden
  • HIGHGHSA-qccp-gfcp-xxvc CVE-2026-44431 PYSEC-2026-141urllib3: Sensitive headers forwarded across origins in proxied low-level redirects
  • HIGHGHSA-2xpw-w6gg-jr37 CVE-2025-66471 PYSEC-2026-1994urllib3 streaming API improperly handles highly compressed data
  • HIGHGHSA-gm62-xv2j-4w53 CVE-2025-66418 PYSEC-2026-1998urllib3 allows an unbounded number of links in the decompression chain
  • HIGHGHSA-38jv-5279-wg99 CVE-2026-21441 PYSEC-2026-1996Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API)
  • HIGHGHSA-vxq7-64xx-v4gw CVE-2026-97689 PYSEC-2026-4177urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory
  • MEDIUMPYSEC-2026-4177 CVE-2026-97689 GHSA-vxq7-64xx-v4gwurllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory
  • MEDIUMPYSEC-2026-1998 CVE-2025-66418 GHSA-gm62-xv2j-4w53urllib3 allows an unbounded number of links in the decompression chain
  • MEDIUMPYSEC-2026-1996 CVE-2026-21441 GHSA-38jv-5279-wg99Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API)
  • MEDIUMPYSEC-2026-1999 CVE-2025-50181 GHSA-pq67-6m6q-mj2vurllib3 redirects are not disabled when retries are disabled on PoolManager instantiation
  • MEDIUMGHSA-48p4-8xcf-vxj5 CVE-2025-50182 PYSEC-2026-1997urllib3 does not control redirects in browsers and Node.js
  • MEDIUMPYSEC-2026-1994 CVE-2025-66471 GHSA-2xpw-w6gg-jr37urllib3 streaming API improperly handles highly compressed data
  • MEDIUMPYSEC-2026-4175 CVE-2026-97687 GHSA-8988-9cw3-xx77urllib3: HTTPS proxy TLS configuration may be ignored or overridden
  • MEDIUMPYSEC-2026-141 CVE-2026-44431 GHSA-qccp-gfcp-xxvcurllib3 is an HTTP client library for Python. From 1.23 to before 2.7.0, cross-origin redirects followed from the low-level API via ProxyManager.connection_from_url().urlopen(..., assert_same_host=False) still forward these sensitive headers. This vulnerability is fixed in 2.7.0.
  • MEDIUMGHSA-pq67-6m6q-mj2v CVE-2025-50181 PYSEC-2026-1999urllib3 redirects are not disabled when retries are disabled on PoolManager instantiation
  • MEDIUMPYSEC-2026-1997 CVE-2025-50182 GHSA-48p4-8xcf-vxj5urllib3 does not control redirects in browsers and Node.js
pyasn1PyPI 0.6.1 HIGH 14 advisories 0.6.20.6.30.6.4+1 more
  • HIGHGHSA-jr27-m4p2-rc6r CVE-2026-30922 PYSEC-2026-2263Denial of Service in pyasn1 via Unbounded Recursion
  • HIGHGHSA-m4p7-r5rc-7g4j CVE-2026-59884 PYSEC-2026-3455pyasn1 BER/CER/DER decoder denial of service via unbounded long-form tag IDs
  • HIGHGHSA-63vm-454h-vhhq CVE-2026-23490 PYSEC-2026-1810pyasn1 has a DoS vulnerability in decoder
  • HIGHGHSA-fm9c-5rcf-2q5p CVE-2026-119194pyasn1 has quadratic CPU use in schemaless BER/CER/DER container decoding
  • HIGHGHSA-mm57-4v3p-rchx CVE-2026-119197pyasn1 has quadratic-complexity denial of service in binary REAL decoding
  • HIGHGHSA-8ppf-4f7h-5ppj CVE-2026-59885 PYSEC-2026-3456pyasn1: Quadratic complexity in OBJECT IDENTIFIER and RELATIVE-OID processing allows denial of service
  • HIGHGHSA-2qm8-x737-gmw5 CVE-2026-119196pyasn1 has quadratic CPU consumption in constructed BIT STRING decoding
  • HIGHGHSA-9m75-vc3g-4x39 CVE-2026-119195pyasn1 has quadratic-time denial of service in constructed string and indefinite-length ANY decoding
  • HIGHGHSA-hm4w-wwcw-mr6r CVE-2026-59886 PYSEC-2026-3457pyasn1: Uncontrolled resource consumption when converting decoded REAL values
  • MEDIUMPYSEC-2026-3457 CVE-2026-59886 GHSA-hm4w-wwcw-mr6rpyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the univ.Real type converted its mantissa, base, and exponent value to a Python float using exact big-integer exponentiation. A BER, CER, or DER encoded REAL value only a few bytes long can carry a very large exponent, causing float conversion through prettyPrint(), str(), comparison, arithmetic, int(), or an explicit float() call to consume excessive CPU and memory and hang applications that decode untrusted ASN.1 data and then print, log, or compare decoded objects. This issue is fixed in version 0.6.4.
  • MEDIUMPYSEC-2026-2263 CVE-2026-30922 GHSA-jr27-m4p2-rc6rpyasn1 is a generic ASN.1 library for Python. Prior to 0.6.3, the `pyasn1` library is vulnerable to a Denial of Service (DoS) attack caused by uncontrolled recursion when decoding ASN.1 data with deeply nested structures. An attacker can supply a crafted payload containing thousands of nested `SEQUENCE` (`0x30`) or `SET` (`0x31`) tags with "Indefinite Length" (`0x80`) markers. This forces the decoder to recursively call itself until the Python interpreter crashes with a `RecursionError` or consumes all available memory (OOM), crashing the host application. This is a distinct vulnerability from CVE-2026-23490 (which addressed integer overflows in OID decoding). The fix for CVE-2026-23490 (`MAX_OID_ARC_CONTINUATION_OCTETS`) does not mitigate this recursion issue. Version 0.6.3 fixes this specific issue.
  • MEDIUMPYSEC-2026-1810 CVE-2026-23490 GHSA-63vm-454h-vhhqpyasn1 has a DoS vulnerability in decoder
  • MEDIUMPYSEC-2026-3456 CVE-2026-59885 GHSA-8ppf-4f7h-5ppjpyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER, CER, and DER decoders process OBJECT IDENTIFIER and RELATIVE-OID values in quadratic time relative to the number of arcs, so a small crafted payload containing an OID with many arcs consumes excessive CPU per decode() call and can deny service to applications that decode untrusted ASN.1 data. The corresponding encoders have the same quadratic behavior when an application re-encodes previously decoded attacker-supplied values. This issue is fixed in version 0.6.4.
  • MEDIUMPYSEC-2026-3455 CVE-2026-59884 GHSA-m4p7-r5rc-7g4jpyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER decoder shared by the CER and DER codecs parses long-form tags by accumulating continuation octets without an upper bound on the tag ID size, allowing a crafted input to force construction of an arbitrarily large integer with CPU cost growing quadratically and to trigger unhandled ValueError exceptions in Python 3.11+ error formatting paths. Any application decoding untrusted BER, CER, or DER input is affected. This issue is fixed in version 0.6.4.
starlettePyPI 0.46.1 HIGH 14 advisories 0.47.20.49.11.0.1+3 more
  • HIGHGHSA-82w8-qh3p-5jfq CVE-2026-54283 PYSEC-2026-249Starlette: request.form() limits silently ignored for application/x-www-form-urlencoded enable DoS
  • HIGHGHSA-7f5h-v6xp-fcq8 CVE-2025-62727 PYSEC-2026-1942Starlette vulnerable to O(n^2) DoS via Range header merging in ``starlette.responses.FileResponse``
  • HIGHGHSA-wqp7-x3pw-xc5r CVE-2026-48818 PYSEC-2026-2281Starlette: SSRF and NTLM credential theft via UNC paths in StaticFiles on Windows
  • MEDIUMPYSEC-2026-2280 CVE-2026-48817 GHSA-x746-7m8f-x49cStarlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and below, when dispatching a request, HTTPEndpoint selects the handler by lowercasing the HTTP method and looking it up as an attribute with getattr, without restricting the lookup to a known set of HTTP verbs. When an HTTPEndpoint subclass is registered through Route(...) without an explicit methods= argument, the route does not constrain the method and every method reaches the endpoint. If a non-standard HTTP method whose lowercased name matches an attribute on the endpoint subclass reaches the endpoint, that attribute is invoked as if it were a request handler. An attacker can use this to reach methods that were never meant to be HTTP handlers, such as internal helpers, without the authorization checks applied by the intended public handler. An application (including Starlette-based frameworks like FastAPI) is affected if it registers an HTTPEndpoint subclass via Route(...) without explicitly setting methods=, and that subclass includes extra methods named like non-standard HTTP verbs that take one request argument and return a response. This issue has been fixed in version 1.1.0.
  • MEDIUMGHSA-2c2j-9gv5-cj73 CVE-2025-54121 PYSEC-2026-1941Starlette has possible denial-of-service vector when parsing large files in multipart forms
  • MEDIUMGHSA-86qp-5c8j-p5mr CVE-2026-48710 PYSEC-2026-161 X41-2026-002Starlette has missing Host header validation that poisons request.url.path, bypassing path-based security checks
  • MEDIUMPYSEC-2026-2281 CVE-2026-48818 GHSA-wqp7-x3pw-xc5rStarlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and earlier, StaticFiles on Windows is vulnerable to SSRF. An UNC path such as \\\\attacker.com\\share can cause os.path.realpath to initiate an outbound SMB connection before the path is rejected, exposing the service account’s NTLMv2 credentials for offline cracking or relay even though the HTTP response is only a 404. The issue affects default follow_symlink=False deployments, including frameworks built on Starlette such as FastAPI; POSIX systems and follow_symlink=True are unaffected. The issue is fixed in 1.1.0.
  • MEDIUMGHSA-x746-7m8f-x49c CVE-2026-48817 PYSEC-2026-2280Starlette: Arbitrary HTTP method dispatched to `HTTPEndpoint` attributes via `getattr`
  • MEDIUMPYSEC-2026-249 CVE-2026-54283 GHSA-82w8-qh3p-5jfqStarlette is a lightweight ASGI framework/toolkit. From 0.4.1 until 1.3.1, request.form() accepts max_fields and max_part_size to bound resource consumption while parsing form data. These limits are enforced for multipart/form-data, but silently ignored for application/x-www-form-urlencoded. An unauthenticated attacker can therefore send a urlencoded body with an arbitrarily large number of fields or an arbitrarily large field, even when the application configured limits it believed would apply. This vulnerability is fixed in 1.3.1.
  • MEDIUMPYSEC-2026-1941 CVE-2025-54121 GHSA-2c2j-9gv5-cj73Starlette has possible denial-of-service vector when parsing large files in multipart forms
  • MEDIUMPYSEC-2026-161 CVE-2026-48710 GHSA-86qp-5c8j-p5mr X41-2026-002BadHost: Missing Host header validation poisons request.url.path, bypassing path-based security checks
  • MEDIUMPYSEC-2026-248 CVE-2026-54282 GHSA-jp82-jpqv-5vv3Starlette is a lightweight ASGI framework/toolkit. Prior to 1.3.0, the HTTP request path is not validated before being used to reconstruct request.url. Because request.url is rebuilt by concatenating {scheme}://{host}{path} and re-parsing the result, a path that does not begin with / (for example @google.com) moves the authority boundary during re-parsing, so request.url.hostname and request.url.netloc become attacker-controlled. Code that reads request.url.hostname (rather than the Host header or scope) can therefore be misled into trusting an attacker-supplied host. This vulnerability is fixed in 1.3.0.
  • MEDIUMPYSEC-2026-1942 CVE-2025-62727 GHSA-7f5h-v6xp-fcq8Starlette vulnerable to O(n^2) DoS via Range header merging in ``starlette.responses.FileResponse``
  • LOWGHSA-jp82-jpqv-5vv3 CVE-2026-54282 PYSEC-2026-248Starlette: Unvalidated request path concatenated into authority poisons request.url.hostname
mcpPyPI 1.5.0 HIGH 10 advisories 1.9.41.10.01.23.0+2 more
  • HIGHGHSA-3qhf-m339-9g5v CVE-2025-53366 PYSEC-2026-1616MCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoS
  • HIGHGHSA-9h52-p55h-vw2f CVE-2025-66416 PYSEC-2026-1617Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
  • HIGHGHSA-j975-95f5-7wqh CVE-2025-53365 PYSEC-2026-1618MCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service
  • HIGHGHSA-jpw9-pfvf-9f58 CVE-2026-52869 PYSEC-2026-3482MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal
  • HIGHGHSA-vj7q-gjh5-988w CVE-2026-59950 PYSEC-2026-3483MCP Python SDK: WebSocket server transport does not support Host/Origin validation
  • MEDIUMPYSEC-2026-3482 CVE-2026-52869 GHSA-jpw9-pfvf-9f58MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal
  • MEDIUMPYSEC-2026-1618 CVE-2025-53365 GHSA-j975-95f5-7wqhMCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service
  • MEDIUMPYSEC-2026-3483 CVE-2026-59950 GHSA-vj7q-gjh5-988wMCP Python SDK: WebSocket server transport does not support Host/Origin validation
  • MEDIUMPYSEC-2026-1617 CVE-2025-66416 GHSA-9h52-p55h-vw2fModel Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
  • MEDIUMPYSEC-2026-1616 CVE-2025-53366 GHSA-3qhf-m339-9g5vMCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoS
fsspecPyPI 2025.3.0 HIGH 2 advisories 2026.6.0
  • HIGHGHSA-27vj-qcqg-25rc CVE-2026-104851 PYSEC-2026-4217fsspec: Server-Side Template Injection in ReferenceFileSystem leads to Remote Code Execution
  • MEDIUMPYSEC-2026-4217 CVE-2026-104851 GHSA-27vj-qcqg-25rcfsspec: Server-Side Template Injection in ReferenceFileSystem leads to Remote Code Execution
pydantic-aiPyPI 0.0.46 HIGH 2 advisories 1.56.0
  • HIGHGHSA-2jrp-274c-jhv3 CVE-2026-25580 PYSEC-2026-2976 PYSEC-2026-2980Pydantic AI has Server-Side Request Forgery (SSRF) in URL Download Handling
  • MEDIUMPYSEC-2026-2976 CVE-2026-25580 GHSA-2jrp-274c-jhv3 PYSEC-2026-2980Pydantic AI has Server-Side Request Forgery (SSRF) in URL Download Handling
pydantic-ai-slimPyPI 0.0.46 HIGH 2 advisories 1.56.0
  • HIGHGHSA-2jrp-274c-jhv3 CVE-2026-25580 PYSEC-2026-2976 PYSEC-2026-2980Pydantic AI has Server-Side Request Forgery (SSRF) in URL Download Handling
  • MEDIUMPYSEC-2026-2980 CVE-2026-25580 GHSA-2jrp-274c-jhv3 PYSEC-2026-2976Pydantic AI has Server-Side Request Forgery (SSRF) in URL Download Handling
filelockPyPI 3.18.0 MEDIUM 6 advisories 3.20.13.20.34.2.1
  • MEDIUMGHSA-w853-jp5j-5j7f CVE-2025-68146 PYSEC-2026-1375filelock has a TOCTOU race condition which allows symlink attacks during lock file creation
  • MEDIUMGHSA-69hj-f68j-2879 CVE-2026-112909filelock: UnixFileLock truncates and chmods any regular file another user renames or hard-links onto the lock path
  • MEDIUMGHSA-8mx5-7m5m-r77g CVE-2026-112910filelock: WindowsFileLock ignores mode: a 0o600 lock file and the ReadWriteLock database inherit the directory ACL
  • MEDIUMGHSA-qmgc-5h2g-mvrw CVE-2026-22701 PYSEC-2026-1374filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock
  • MEDIUMPYSEC-2026-1375 CVE-2025-68146 GHSA-w853-jp5j-5j7ffilelock has a TOCTOU race condition which allows symlink attacks during lock file creation
  • MEDIUMPYSEC-2026-1374 CVE-2026-22701 GHSA-qmgc-5h2g-mvrwfilelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock
requestsPyPI 2.32.3 MEDIUM 4 advisories 2.32.42.33.0
  • MEDIUMPYSEC-2026-1872 CVE-2024-47081 GHSA-9hjg-9r4m-mvj7Requests vulnerable to .netrc credentials leak via malicious URLs
  • MEDIUMPYSEC-2026-2275 CVE-2026-25645 GHSA-gc5v-m9x4-r6x2Requests is a HTTP library. Prior to version 2.33.0, the `requests.utils.extract_zipped_paths()` utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp directory could pre-create a malicious file that would be loaded in place of the legitimate one. Standard usage of the Requests library is not affected by this vulnerability. Only applications that call `extract_zipped_paths()` directly are impacted. Starting in version 2.33.0, the library extracts files to a non-deterministic location. If developers are unable to upgrade, they can set `TMPDIR` in their environment to a directory with restricted write access.
  • MEDIUMGHSA-gc5v-m9x4-r6x2 CVE-2026-25645 PYSEC-2026-2275Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function
  • MEDIUMGHSA-9hjg-9r4m-mvj7 CVE-2024-47081 PYSEC-2026-1872Requests vulnerable to .netrc credentials leak via malicious URLs
idnaPyPI 3.10 MEDIUM 2 advisories 3.15
  • MEDIUMPYSEC-2026-215 CVE-2026-45409 GHSA-65pc-fj4g-8rjxInternationalized Domain Names in Applications (IDNA) for Python provides support for Internationalized Domain Names in Applications (IDNA) and Unicode IDNA Compatibility Processing. In versions prior to 3.15, payloads such as `"\\u0660" * N` or `"\\u30fb" * N + "\\u6f22"` utilize the `valid_contexto` function prior to length rejection, and for high values of `N` will take a long time to process. This is the same issue as CVE-2024-3651, however the original remediation in 2024 was not a complete fix. A specially crafted argument to the `idna.encode()` function could consume significant resources. This may lead to a denial-of-service. Starting in version 3.14, the function rejects long inputs as soon as practicable prior to any further processing to minimize resource consumption. In version 3.15, this approach was extended to lesser used alternate functions (i.e. per-label conversions and codec support). A workaround is available. Domain names cannot exceed 253 characters in length. If this length limit is enforced prior to passing the domain to the `idna.encode()` function, it should no longer consume significant resources. This is triggered by arbitrarily large inputs that would not occur in normal usage, but may be passed to the library assuming there is no preliminary input validation by the higher-level application.
  • MEDIUMGHSA-65pc-fj4g-8rjx CVE-2026-45409 PYSEC-2026-215Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.encode() can bypass CVE-2024-3651 fix
opentelemetry-apiPyPI 1.31.1 MEDIUM 2 advisories 1.45.11.45.2
  • MEDIUMGHSA-xcq7-p3pf-p88h CVE-2026-114603OpenTelemetry Python: Unbounded tracestate parsing in opentelemetry-api
  • MEDIUMGHSA-mf5v-w3w3-f6cg CVE-2026-126360OpenTelemetry Python API: Denial of service through quadratic-time traceparent parsing
pygmentsPyPI 2.19.1 MEDIUM 2 advisories 2.20.0
  • MEDIUMPYSEC-2026-2987 CVE-2026-4539 GHSA-5239-wwwm-4pmqPygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
  • LOWGHSA-5239-wwwm-4pmq CVE-2026-4539 PYSEC-2026-2987Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
python-dotenvPyPI 1.0.1 MEDIUM 2 advisories 1.2.2
  • MEDIUMGHSA-mf9w-mj56-hr94 CVE-2026-28684 PYSEC-2026-2270python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback
  • MEDIUMPYSEC-2026-2270 CVE-2026-28684 GHSA-mf9w-mj56-hr94python-dotenv reads key-value pairs from a .env file and can set them as environment variables. Prior to version 1.2.2, `set_key()` and `unset_key()` in python-dotenv follow symbolic links when rewriting `.env` files, allowing a local attacker to overwrite arbitrary files via a crafted symlink when a cross-device rename fallback is triggered. Users should upgrade to v.1.2.2 or, as a workaround, apply the patch manually.

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
TransportSSE
Sign-innot checked needs the live server
Servers in the code1 (pg-mcp-server)

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2025-09-10
Signed releasesnot checked yet

Where it is published

Listed in3 catalogs (github_search, glama, mcp_toplist)
LicenseMIT
Created2025-03-25

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.