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.
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
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 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
- 31 Oct 2026, 15:04 UTC First seen by agentprime
- 31 Oct 2026, 15:04 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-f964-whrq-44h8
- OSV: GHSA-f964-whrq-44h8
- github.com/ormar-orm/ormar/security/advisories/GHSA-f964-whrq-44h8
- nvd.nist.gov/vuln/detail/CVE-2026-27953
- github.com/ormar-orm/ormar/commit/7f22aa21a7614b993970345b392dabb0ccde0ab3
- github.com/ormar-orm/ormar
- github.com/ormar-orm/ormar/blob/master/examples/fastapi_quick_start.py#L55
- github.com/ormar-orm/ormar/blob/master/ormar/fields/foreign_key.py#L41
- github.com/ormar-orm/ormar/blob/master/ormar/models/helpers/pydantic.py#L108
- github.com/ormar-orm/ormar/blob/master/ormar/models/model.py#L89
- github.com/ormar-orm/ormar/blob/master/ormar/models/newbasemodel.py#L128
- github.com/ormar-orm/ormar/blob/master/ormar/models/newbasemodel.py#L292
- github.com/ormar-orm/ormar/releases/tag/0.23.1