Advisory record · GHSA-f964-whrq-44h8

ormar Pydantic Validation Bypass via __pk_only__ and __excluded__ Kwargs Injection in Model Constructor

CVSS 7.1 HighEPSS 0.014 · 72nd percentile

Published by the GitHub Advisory Database at 19 Mar 2026, 16:27 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
ormarPyPI<0.23.10.23.1
Identifiers
GHSA-f964-whrq-44h8 · CVE-2026-27953 · PYSEC-2026-2247
Weakness (CWE)
CWE-20 · CWE-915
Published
19 Mar 2026
Updated
13 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

ormar versions before 0.23.1 are vulnerable to a validation bypass in the model constructor. An unauthenticated user who can send data to a model's constructor, such as a FastAPI endpoint that accepts an ormar model as its request body, can inject special keys like __pk_only__ to skip all field validation, and the unvalidated data can then be saved to the database. Upgrade to ormar 0.23.1 or later.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.1 High 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.014, the 72nd percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:04 UTC First seen by agentprime
  2. 31 Oct 2026, 15:04 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.