Skip to content

v11.0.0: Ten Advisories and Admission Only on Proof

Latest

Choose a tag to compare

@rahuldass19 rahuldass19 released this 19 Nov 07:39
· 11 commits to main since this release
6cb53f0

v11.0.0: Ten Advisories and Admission Only on Proof

A major release that fixes ten advisories. The code, SQL, maths, image and guard checks now admit only what they can show safe, and QWEDLocal no longer calls a model's answer verified because the model's own formula or expression agrees with it. /verify/logic proves a claim instead of reporting satisfiability, every translation is screened for prompt injection in one place, and packages are published only from a release. The Go module path ends in /v11. Read Upgrading to 11.0.0 before upgrading.

Security fixes (advisories)

They affect versions up to 10.0.0; upgrading is recommended. Each has regression tests in tests/.

Advisory Severity Fix
GHSA-7xrf-75qr-2r5w high /verify/code admits only code it can show safe: JavaScript, TypeScript, Java and Go are never admitted, SQL is decided by SQLVerifier, and Python that reads a name it never binds is refused.
GHSA-wgcp-398q-m296 high /verify/sql and SQLGuard admit only reads of tables and known functions: files, URLs, stages, script transforms, substitution, server values and functions that read files or secrets or call a model are refused.
GHSA-8fwp-93x2-9fhw high QWEDLocal.verify_logic no longer reports a model's answer as verified because the model's own Z3 formula agrees with it.
GHSA-r9hc-57m3-2r9f high QWEDLocal.verify_math, QWEDLocal.verify and qwed verify no longer report a model's answer as verified because the model's own SymPy expression agrees with it.
GHSA-xpfc-qm4c-xf6q medium /verify/sql refuses column tautologies in OR, whole-row reads of tables with a protected column, and queries that sqlglot and a database can split into tokens differently.
GHSA-v3m4-7qhm-rjpm medium The guards and SecurityGateway.detect_injection read text through invisible characters, tag characters and JSON escapes.
GHSA-q7m5-rmvq-v848 medium /verify/math no longer admits identities that hold only after Unicode folding or Float rounding.
GHSA-3qh3-x222-q2jj medium ExfiltrationGuard and MCPPoisonGuard decide a URL by the host it goes to, not by how it starts.
GHSA-6m2h-98rq-4f53 medium /verify/sql refuses SELECT ... INTO as a destructive command.
GHSA-vch3-x5fq-m7r2 low /verify/image reads a size only when the file holds together as one whole image.

Other security changes

  • Packages are published only from a published release (#623), through protected environments the maintainer approves. npm and crates.io use trusted publishing, so no registry token is stored for them.
  • Every translation is screened for prompt injection (#632, #641): consensus, stats and the fact advisory now run the same check as the natural-language and logic routes, in TranslationLayer, before any provider is called.
  • The injection phrase check reads text the way a model does (#632, #644): invisible characters and fullwidth letters no longer hide a phrase.
  • A crafted question no longer stalls the server (#645, #647): phrases are searched in linear time. No verdict changes.

Upgrading to 11.0.0

  • QWEDLocal never verifies. verify, verify_math and verify_logic return verified False for every claim, with the reason in error, and qwed verify exits 1. Send a maths claim as an equation to /verify/math; for logic, write the variables and constraints and use LogicVerifier.
  • /verify/code. javascript, typescript, java and go are UNVERIFIABLE when no listed pattern shows them unsafe, never admitted. SQL there is checked without a schema; send it to /verify/sql to check tables and columns. Python that reads a name it does not bind is refused: pass the names your runtime binds with CodeVerifier(bound_names=...).
  • /verify/logic (#631, #640): VERIFIED when the claim follows for every value, proven false with a counterexample when it does not, UNVERIFIABLE with no claim or with constraints that cannot hold together. A satisfiable set of constraints is no longer VERIFIED.
  • SQL. Three new constraints: sql_verifier.unknown_function, sql_verifier.unrestricted_or and sql_verifier.ambiguous_tokenization; SQLGuard answers UNKNOWN_FUNCTION_BLOCKED, EXTERNAL_READ_BLOCKED or AMBIGUOUS_TOKENS. SELECT ... INTO is destructive. Some queries 10.0.0 admitted are refused by design (less common or user-defined functions, ORs of ranges, optional-parameter idioms, backslashes); CHANGELOG.md lists them.
  • Maths. Superscripts, subscripts, Roman numerals, other-width letters, leading zeros and numbers separated only by space are refused, with a message saying how to write them. A claim that calls Float, or whose decimals cannot be read exactly, is UNVERIFIABLE (math.inexact_decimal).
  • Images. A size claim is UNVERIFIABLE for animated WebP and for a file that does not hold together as one image.
  • Guards. ExfiltrationGuard refuses URLs with userinfo, a backslash in the host part, a bad port or a host that is not ASCII (write it in its xn-- form). MCPPoisonGuard refuses an @ after a URL in a tool description before the next /, ? or #.
  • Admission (#630, #639): admission_decision refuses a verdict reached on a model's translation of the question.
  • Translation screening (#632, #641): a question the injection check refuses is BLOCKED on consensus and stats, and a fact request for the model advisory is BLOCKED when its claim or context is refused or longer than 10,000 characters.
  • Go: import github.com/QWED-AI/qwed-verification/sdk-go/v11. The Go, TypeScript and Rust SDKs have no API changes.

Each change is described in full in CHANGELOG.md.

Also in this release

  • Natural-language and logic results name the model that translated (#585, #648), as translation_model, read from the provider's configuration and never part of a verdict.
  • A wrong claim no longer opens the consensus circuit breaker (#642, #643): it counts only an engine that did not answer.
  • NOTICE, a name and logo policy and contribution terms (#624), and LICENSE and NOTICE in every package (#625).

Soundness eval

This release carries eval-results.json: 163 known-answer claims through the Math, Logic, SQL, Code and Schema engines, 0 accepted wrongly. Of the ten advisories, only the /verify/code fix has cases there.

Upgrade

  • PyPI: qwed==11.0.0
  • npm: @qwed-ai/sdk@11.0.0
  • crates.io: qwed = "11.0.0"
  • Docker: qwedai/qwed-verification:11.0.0
  • GitHub Action: QWED-AI/qwed-verification@v11.0.0
  • Go SDK: go get github.com/QWED-AI/qwed-verification/sdk-go/v11@v11.0.0

Full changelog: see CHANGELOG.md (versions 8.0.0 and earlier are in docs/CHANGELOG-archive.md).