Repository navigation
v13.0.0: Every Name in a Schema Checked, and Every Field of a Tool Read
A major release that fixes six advisories found in the project's own reviews. With a schema, SQLVerifier checks every part of a table name and every column in every clause, and with writes allowed it admits only data changes inside the database. Maths on the natural-language, agent and consensus routes runs in the math worker, under its limits. MCPPoisonGuard reads every field of a tool definition, url_guard refuses a host part that clients can read differently, and only an owner or an admin can register an agent. A logic claim about a term with no value, such as a division by zero, is never satisfied or proved, and PostgreSQL operators that are not built in are refused. The Go module path ends in /v13. Read Upgrading to 13.0.0 before upgrading.
Security fixes (advisories)
They affect versions up to 12.0.0; upgrading is recommended. Each has regression tests in tests/test_ghsa_*.py.
| Advisory | Severity | Fix |
|---|---|---|
| GHSA-jm6g-2j2p-cprr | medium | With a schema, SQLVerifier compared only the last part of a table name, skipped any table named like a CTE anywhere in the query, and did not check columns, so hr.users passed as users and a function called by a bare name passed. Names are now compared part by part as the dialect compares them, a CTE counts only in scope, and every column in every clause, row counts included, must belong to a source in scope. |
| GHSA-hhxx-56wq-4j82 | medium | The natural-language, agent and consensus routes evaluated a model's expression with SymPy in the API process, so one expression could hold the interpreter lock and stall every request. They now use the math worker, under QWED_MATH_TIMEOUT_SECONDS and the other QWED_MATH_* limits. |
| GHSA-qm23-p44x-g7gr | medium | MCPPoisonGuard read only a tool's description and the top-level parameter descriptions. It now reads every string of the definition and of a server configuration, other forms of an override phrase, and URLs of any scheme. |
| GHSA-4527-8wjv-h94g | low | With writes allowed, SQLVerifier and SQLGuard admitted administrative statements such as DuckDB INSTALL from a URL, KILL and sp_executesql. Only queries (SELECT ... INTO included) and data changes inside the database are admitted now. |
| GHSA-5rmp-p632-6prf | low | url_guard.validate_fetch_url did not decode a percent-encoded host, and read a backslashed host differently from requests, so the metadata address could be fetched. A URL's authority must now be written so every client reads the same host. |
| GHSA-hg68-hg59-ph4v | low | POST /agents/register accepted any API key of an organisation, a viewer's included, with any permissions and budget. It now needs an owner or an admin, known permissions and a budget above 0 and at most 10,000 a day. |
Upgrading to 13.0.0
- Maths in the worker.
ControlPlane.math_verifierandConsensusVerifier.math_verifierare removed. Natural-language, agent and consensus maths run under the worker's limits:QWED_MATH_TIMEOUT_SECONDS(default 10) bounds the wait for a free worker and then, again, the run; the model's translation before it is not counted. SizeQWED_MATH_WORKERSandQWED_MATH_MAX_WAITINGfor these routes too. - SQL with a schema. Declare
public.usersto querypublic.users; a declaredusersno longer covers it. Columns not declared for a source in scope, and PIVOT or UNPIVOT, are refused. - SQL with writes allowed. CREATE or DROP of anything but a table, view, index, sequence or schema,
INSTALL,LOAD,KILL,EXECand tables stored outside the database are refused. - SQL operators (#712). In the PostgreSQL family an operator that is not built in (pgvector's
<=>, pg_trgm's<%) is refused; write a psycopg parameter asid = %s, with a space. MCPPoisonGuard. A URL to a host outsideallowed_domainsin any field is refused: add the host.url_guard. Write a non-ASCII host in itsxn--form.- Agent registration. Only owners and admins; permissions are
use_tool_<tool>for the six tools the tool route approves. - Logic (#636, #692). A claim about a division or remainder by zero, or
0 ** -1, is neither satisfied nor proved; decimals are read exactly, andinfandnanare refused. - Kubernetes (#182). The Secret template is
deploy/kubernetes/secret.yaml.example, and the ConfigMap'sAZURE_OPENAI_DEPLOYMENTis empty: set it. - Docker (#691). The images run Python 3.15; rebuild the CrossHair sandbox as
qwed-crosshair-sandbox:0.0.114. - z3-solver 5.4.1.0 is required (#688).
- Go: import
github.com/QWED-AI/qwed-verification/sdk-go/v13. The Go, TypeScript and Rust SDKs have no API changes.
Each change is described in full in CHANGELOG.md.
Also in this release
- z3-solver 5.4 (#688, #690): a power with an Int term is a Real term on every z3-solver, so
x ** -1 == 0is not satisfiable forx = 2. - Decimals are exact (#636):
0.1 == 0.10000000000000001is no longer proved. - sqlglot 30.36.0 (#712): BigQuery
ST_GEOGFROMGEOJSONand Databricks and TrinoCURRENT_PATH;SQLGuard'snormalized_queryis written in the query's own dialect. - Node 26 builds the TypeScript SDK (#685); Dependabot updates the CrossHair sandbox image (#184).
- Soundness eval: the reproductions of four 11.0.0 advisories (#701).
Soundness eval
This release carries eval-results.json: 207 known-answer claims through the Math, Logic, SQL, Code and Schema engines, 0 accepted wrongly.
Upgrade
- PyPI:
qwed==13.0.0 - npm:
@qwed-ai/sdk@13.0.0 - crates.io:
qwed = "13.0.0" - Docker:
qwedai/qwed-verification:13.0.0 - Go:
go get github.com/QWED-AI/qwed-verification/sdk-go/v13@v13.0.0