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

sendproof-sqlalchemy

Latest version: v0.1.0a2

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: mprync
0 Stars
0 Forks
2 Versions
100 Downloads
JavaScript Repo language

Scan summary

sendproof-sqlalchemy was last scanned on 24 Nov 2026 at version 0.1.0a2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published within 3 days (22–24 Nov 2026).
  • Findings: No rules fired in version 0.1.0a2.
  • Downloads: 100 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0a2 LATEST 24 Nov 2026 No rules fired
0.1.0a1 22 Nov 2026 No rules fired

No rules fired in 0.1.0a2

Findings

Findings for v0.1.0a2. 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 0.1.0a2; other versions have their own rules, not their own score.

README

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

sendproof-sqlalchemy

Rollback previews, SQL capture and ORM change capture for Sendproof applications that use SQLAlchemy 2.x.

from sendproof_sqlalchemy import SQLAlchemyPreview

provider = SQLAlchemyPreview(engine, database="inventory_dev")   # Engine or AsyncEngine

Pass the provider to a framework adapter, for example Sendproof(app, provider=provider, ...). Install sendproof-sqlalchemy[asyncio] for AsyncEngine support (needs greenlet). database is a public label; never put a connection string in it.

What a preview guarantees

While a preview runs, every Session and Connection of the request that uses a registered engine shares one database connection. A hook on the engine's raw_connection() provides it only inside a preview; other requests are untouched. On that connection:

  • commit releases an internal SAVEPOINT, so the writes stay visible to the rest of the request (commit-then-refresh, a second Session in a dependency, and so on) but are never durable.
  • rollback rolls back to that savepoint, so a handler that commits and then fails behaves as it would for real.
  • At the end the adapter performs a real rollback and confirms it. If the database refuses, the adapter withholds the success envelope and the connection is invalidated rather than reused.

An independent read after the preview, from a separate request or connection, finds the data unchanged.

Change capture

Inserts, updates and deletes flushed through the ORM Session become changes with the table, the primary key and before/after column snapshots (keys use column names). Observed Send records the same changes while committing normally.

Coverage notes

Read these before advertising an operation for Preview.

  • Not captured: Core DML (session.execute(update(...))), ORM bulk operations, raw SQL, database triggers and cascades performed by the database. Their SQL appears in the logs and they are still rolled back, but no rows are shown. Rows are never synthesized.

  • One connection per engine: statements that run concurrently inside a single preview share a connection and its locks. With SQLite, two previews at once block each other until the first rolls back; PostgreSQL and MySQL do not.

  • Verified dialects: SQLite, PostgreSQL and MySQL. The ANSI savepoint path also permits MariaDB and Oracle, which have yet to be exercised by the conformance matrix. Other dialects make Preview unavailable.

  • Refused: engines or connections in AUTOCOMMIT mode, because the driver commits each statement itself.

  • Transaction-control SQL is refused before it is sent: COMMIT, ROLLBACK (but not ROLLBACK TO SAVEPOINT), BEGIN, SET autocommit in any form, XA, and the internal sendproof_preview savepoint. On MySQL and MariaDB also every implicitly committing statement (DDL other than TEMPORARY tables, LOCK/UNLOCK TABLES, GRANT, REVOKE, ANALYZE, CHECK, OPTIMIZE, REPAIR and CACHE INDEX on tables, SET PASSWORD, replication control), SQL-level PREPARE and EXECUTE (and MariaDB's EXECUTE IMMEDIATE), executable comments (/*! ... */) that contain any of these, and CALL. The Preview then answers 500 and rolls back.

  • Stored procedures (MySQL and MariaDB): a procedure can COMMIT, so CALL is refused unless you declare the procedure safe by exact name:

    SQLAlchemyPreview(engine, safe_procedures=["refresh_totals", "reports.rebuild_cache"])

    Names are exact (a schema-qualified call needs the qualified name) and, like MySQL, case-insensitive; wildcards are rejected. This is your statement that the procedure never commits: the binding trusts it.

  • Backstop (every database): the Preview opens its transaction with SAVEPOINT sendproof_preview and, before rolling back, rolls back to it. Any commit erases it, so if something committed anyway (a declared procedure that does commit, a driver call around the engine, after which the driver opens a new transaction by itself), the Preview answers 500 without confirmation, whatever the handler returned. A handler's RELEASE or ROLLBACK TO of that savepoint is refused. The writes made before that commit are durable; the check only stops the Preview from claiming otherwise.

  • Deadlocks (MySQL and MariaDB): a deadlock (1213), or a lock wait timeout (1205) with innodb_rollback_on_timeout on, rolls back the whole Preview transaction. The handler still gets the original error, but every later statement in that Preview is refused before it is sent (a retry would run outside the transaction, and with autocommit on commit for real), and the Preview answers 500 without confirmation. The lock wait timeout case shares the deadlock code path and is covered by unit tests only, because innodb_rollback_on_timeout can be set only at server startup.

  • Outside the database: caches, files, other services, other engines you did not register and work queued after the response are not rolled back. Sequences may advance.

  • Connections the application holds across requests are not enrolled.

  • Other engines you registered are enrolled separately but are not coordinated, as with any non-distributed transaction.

Redaction

SQL parameter values are shown only in the Development environment (override with the adapter's include_sql_parameter_values). A parameter whose name contains a secret word (password, secret, token, hash, salt, credential, apikey, or key after api, private, secret, access, signing, encryption, client) shows [REDACTED]. If the statement itself mentions such a word, every value in it is hidden.

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 sendproof-sqlalchemy

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229