Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

aws-advanced-python-wrapper

Latest version: v3.2.0

Overview

Last scanned
3 Dec 2026
Published
3 Dec 2026
PyPI package Publisher: aws-rds-atlas
101 Stars
26 Forks
1 Versions
120.5K Downloads
Python Repo language

Scan summary

aws-advanced-python-wrapper was last scanned on 3 Dec 2026 at version 3.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 3 Dec 2026.
  • Findings: No rules fired in version 3.2.0.
  • Downloads: 120,519 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
3.2.0 LATEST 3 Dec 2026 No rules fired

No rules fired in 3.2.0

Findings

Findings for v3.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.2.0; other versions have their own rules, not their own score.

Known vulnerabilities

1 CVE · last 10 Nov 2025

0 CRITICAL 1 HIGH 0 MEDIUM 0 LOW

Versions

  • ≥ 1.4.0
  • < 1.4.0 1 HIGH

Vulnerabilities

  • CVE-2025-12967 High 10 Nov 2025 AWS Advanced Python Wrapper: Privilege Escalation in Aurora PostgreSQL instance Fixed in 1.4.0

README

The publisher’s own README, as collected from the registry.

Amazon Web Services (AWS) Advanced Python Wrapper

Python Checks and Unit Tests Integration Tests PyPI - Package Version PyPI - Python Version License

About the Wrapper

Hosting a database cluster in the cloud via Aurora is able to provide users with sets of features and configurations to obtain maximum performance and availability, such as database failover. However, at the moment, most existing drivers do not currently support those functionalities or are not able to entirely take advantage of it.

The main idea behind the AWS Advanced Python Wrapper is to add a software layer on top of an existing Python driver that would enable all the enhancements brought by Aurora, without requiring users to change their workflow with their databases and existing Python drivers.

What is Failover?

In an Amazon Aurora database cluster, failover is a mechanism by which Aurora automatically repairs the cluster status when a primary DB instance becomes unavailable. It achieves this goal by electing an Aurora Replica to become the new primary DB instance, so that the DB cluster can provide maximum availability to a primary read-write DB instance. The AWS Advanced Python Wrapper is designed to understand the situation and coordinate with the cluster in order to provide minimal downtime and allow connections to be very quickly restored in the event of a DB instance failure.

Benefits of the AWS Advanced Python Wrapper

Although Aurora is able to provide maximum availability through the use of failover, existing client drivers do not currently support this functionality. This is partially due to the time required for the DNS of the new primary DB instance to be fully resolved in order to properly direct the connection. The AWS Advanced Python Wrapper allows customers to continue using their existing community drivers in addition to having the AWS Advanced Python Wrapper fully exploit failover behavior by maintaining a cache of the Aurora cluster topology and each DB instance's role (Aurora Replica or primary DB instance). This topology is provided via a direct query to the Aurora DB, essentially providing a shortcut to bypass the delays caused by DNS resolution. With this knowledge, the AWS Advanced Python Wrapper can more closely monitor the Aurora DB cluster status so that a connection to the new primary DB instance can be established as fast as possible.

Enhanced Failure Monitoring

Since a database failover is usually identified by reaching a network or a connection timeout, the AWS Advanced Python Wrapper introduces an enhanced and customizable manner to faster identify a database outage.

Enhanced Failure Monitoring (EFM) is a feature available from the Host Monitoring Connection Plugin that periodically checks the connected database host's health and availability. If a database host is determined to be unhealthy, the connection is aborted (and potentially routed to another healthy host in the cluster).

Using the AWS Advanced Python Wrapper with plain RDS databases

The AWS Advanced Python Wrapper also works with RDS provided databases that are not Aurora.

Please visit this page for more information.

Getting Started

To start using the wrapper with Psycopg, you need to pass Psycopg's connect function to the AwsWrapperConnection#connect method as shown in the following example:

from aws_advanced_python_wrapper import AwsWrapperConnection
from psycopg import Connection

with AwsWrapperConnection.connect(
        Connection.connect,
        "host=database.cluster-xyz.us-east-1.rds.amazonaws.com dbname=db user=john password=pwd",
        plugins="failover",
        wrapper_dialect="aurora-pg",
        autocommit=True
) as awsconn:
    awscursor = awsconn.cursor()
    awscursor.execute("SELECT pg_catalog.aurora_db_instance_identifier()")
    row = awscursor.fetchone()
    print(row)

The AwsWrapperConnection#connect method accepts the connection configuration through both the connection string and the keyword arguments.

You can either pass the connection configuration entirely through the connection string, entirely though the keyword arguments, or through a mixture of both.

To use the wrapper with MySQL Connector/Python, see the following example:

from aws_advanced_python_wrapper import AwsWrapperConnection
from mysql.connector import Connect

with AwsWrapperConnection.connect(
        Connect,
        "host=database.cluster-xyz.us-east-1.rds.amazonaws.com database=db user=john password=pwd",
        plugins="failover",
        wrapper_dialect="aurora-mysql",
        autocommit=True
) as awsconn:
    awscursor = awsconn.cursor()
    awscursor.execute("SELECT @@aurora_server_id")
    row = awscursor.fetchone()
    print(row)

For more details on how to download the AWS Advanced Python Wrapper, minimum requirements to use it, and how to integrate it within your project and with your Python driver of choice, please visit the Getting Started page.

Connection Properties

The following table lists the connection properties used with the AWS Advanced Python Wrapper.

Parameter Documentation Link
auxiliary_query_timeout_sec Driver Parameters
topology_refresh_ms Driver Parameters
cluster_id Driver Parameters
cluster_instance_host_pattern Driver Parameters
global_cluster_instance_host_patterns Failover v2 Plugin
wrapper_dialect Dialects, and whether you should include it.
wrapper_driver_dialect Driver Dialect, and whether you should include it.
plugins Connection Plugin Manager
auto_sort_wrapper_plugin_order Connection Plugin Manager
profile_name Connection Plugin Manager
connect_timeout Network Timeouts
socket_timeout Network Timeouts
tcp_keepalive Network Timeouts
tcp_keepalive_time Network Timeouts
tcp_keepalive_interval Network Timeouts
tcp_keepalive_probes Network Timeouts
enable_failover Failover Plugin
failover_mode Failover Plugin
cluster_instance_host_pattern Failover Plugin
failover_cluster_topology_refresh_rate_sec Failover Plugin
failover_reader_connect_timeout_sec Failover Plugin
failover_timeout_sec Failover Plugin
failover_writer_reconnect_interval_sec Failover Plugin
connection_lifetime_ms Connection Lifetime Plugin
connection_lifetime_action Connection Lifetime Plugin
failure_detection_count Host Monitoring Plugin
failure_detection_enabled Host Monitoring Plugin
failure_detection_interval_ms Host Monitoring Plugin
failure_detection_time_ms Host Monitoring Plugin
monitor_disposal_time_ms Host Monitoring Plugin
iam_default_port IAM Authentication Plugin
iam_host IAM Authentication Plugin
iam_region IAM Authentication Plugin
iam_expiration IAM Authentication Plugin
secrets_manager_secret_id Secrets Manager Plugin
secrets_manager_region Secrets Manager Plugin
secrets_manager_endpoint Secrets Manager Plugin
secrets_manager_secret_username_key Secrets Manager Plugin
secrets_manager_secret_password_key Secrets Manager Plugin
reader_host_selector_strategy Connection Strategy
gdb_rw_home_region GDB Read/Write Splitting Plugin
gdb_rw_restrict_writer_to_home_region GDB Read/Write Splitting Plugin
gdb_rw_restrict_reader_to_home_region GDB Read/Write Splitting Plugin
gdb_enable_global_write_forwarding GDB Read/Write Splitting Plugin
db_user Federated Authentication Plugin
idp_username Federated Authentication Plugin
idp_password Federated Authentication Plugin
idp_endpoint Federated Authentication Plugin
iam_role_arn Federated Authentication Plugin
iam_idp_arn Federated Authentication Plugin
iam_region Federated Authentication Plugin
idp_name Federated Authentication Plugin
idp_port Federated Authentication Plugin
rp_identifier Federated Authentication Plugin
iam_host Federated Authentication Plugin
iam_default_port Federated Authentication Plugin
iam_token_expiration Federated Authentication Plugin
http_request_connect_timeout Federated Authentication Plugin
ssl_secure Federated Authentication Plugin
Using the AWS Advanced Python Wrapper

Technical documentation regarding the functionality of the AWS Advanced Python Wrapper will be maintained in this GitHub repository. Since the AWS Advanced Python Wrapper requires an underlying Python driver, please refer to the individual driver's documentation for driver-specific information. To find all the documentation and concrete examples on how to use the AWS Advanced Python Wrapper, please refer to the AWS Advanced Python Wrapper Documentation page.

For SQLAlchemy integration (both PostgreSQL and MySQL), see SQLAlchemy Support.

Known Limitations
Amazon RDS Blue/Green Deployments

Support for Blue/Green deployments using the AWS Advanced Python Wrapper requires specific metadata tables. The following service versions provide support for Blue/Green Deployments:

  • Supported RDS PostgreSQL Versions: rds_tools v1.7 (17.1, 16.5, 15.9, 14.14, 13.17, 12.21) and above.
  • Supported Aurora PostgreSQL Versions: Engine Release 17.5, 16.9, 15.13, 14.18, 13.21 and above.
  • Supported Aurora MySQL Versions: Engine Release 3.07 and above.

Please note that Aurora Global Database and RDS Multi-AZ clusters with Blue/Green deployments is currently not supported. For detailed information on supported database versions, refer to the Blue/Green Deployment Plugin Documentation.

Enhanced Failure Monitoring with MySQL

Enhanced Failure Monitoring (both the host_monitoring and host_monitoring_v2 plugins) is not supported with the MySQL Connector/Python driver. Both plugins rely on being able to abort an active connection from a separate monitoring thread when a host is determined to be unhealthy, and the MySQL Connector/Python driver does not support aborting connections from a separate thread. For more information, see the Host Monitoring Plugin Documentation.

MySQL Connector/Python C Extension

When connecting to Aurora MySQL clusters, it is recommended to use the Python implementation of the MySQL Connector/Python driver by setting the use_pure connection argument to True. The AWS Advanced Python Wrapper internally calls the MySQL Connector/Python's is_connected method to verify the connection. The MySQL Connector/Python's C extension uses a network blocking implementation of the is_connected method. In the event of a network failure where the host can no longer be reached, the is_connected call may hang indefinitely and will require users to forcibly interrupt the application.

MySQL Support for the IAM Authentication Plugin

The official MySQL Connector/Python offers a Python implementation and a C implementation of the driver that can be toggled using the use_pure connection argument. The IAM Authentication Plugin is incompatible with the Python implementation of the driver due to its 255-character password limit. The IAM Authentication Plugin generates a temporary AWS IAM token to authenticate users. Passing this token to the Python implementation of the driver will result in error messages similar to the following:

Error occurred while opening a connection: int1store requires 0 <= i <= 255

or

struct.error: ubyte format requires 0 <= number <= 255

To avoid this error, we recommend you set use_pure to False when using the IAM Authentication Plugin. However, as noted in the MySQL Connector/Python C Extension section, doing so may cause the application to indefinitely hang if there is a network failure. Unfortunately, due to conflicting limitations, you will need to decide if using the IAM plugin is worth this risk for your application.

Toxiproxy network failure behavior

In the AWS Advanced Python Wrapper test suite, we have two methods of simulating database/network failure:

  • method 1: initiate failover using the AWS RDS SDK.
  • method 2: use a test dependency called Toxiproxy.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases aws-advanced-python-wrapper

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229