CVE-2026-27953ormar has a Pydantic Validation Bypass via Kwargs Injection in Model Constructor
- 7.1HighCVSS base score
- 1.4%Exploitation in 30 daysEPSS · top 28% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
Description
ormar is a async mini ORM for Python. Versions 0.23.0 and below are vulnerable to Pydantic validation bypass through the model constructor, allowing any unauthenticated user to skip all field validation by injecting "__pk_only__": true into a JSON request body. By injecting "__pk_only__": true into a JSON request body, an unauthenticated attacker can skip all field validation and persist unvalidated data directly to the database. A secondary __excluded__ parameter injection uses the same pattern to selectively nullify arbitrary model fields (e.g., email or role) during construction. This affects ormar's canonical FastAPI integration pattern recommended in its official documentation, enabling privilege escalation, data integrity violations, and business logic bypass in any application using ormar.Model directly as a request body parameter. This issue has been fixed in version 0.23.1.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
References tagged exploit1 reference
- https://github.com/ormar-orm/ormar/security/advisories/GHSA-f964-whrq-44h8 (opens in a new tab)x_refsource_CONFIRMexploit
Timeline
ID reserved
By GitHub_M
- 22 days later
· 22 days later
Published
- 1 day later
· 1 day later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L |
| NVDNVD · Analyzed | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 1.4% · top 28% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.1.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References
References9
- https://github.com/ormar-orm/ormar/security/advisories/GHSA-f964-whrq-44h8 (opens in a new tab)x_refsource_CONFIRMexploit
- https://github.com/ormar-orm/ormar/commit/7f22aa21a7614b993970345b392dabb0ccde0ab3 (opens in a new tab)x_refsource_MISC
- https://github.com/ormar-orm/ormar/blob/master/examples/fastapi_quick_start.py#L55 (opens in a new tab)x_refsource_MISC
- https://github.com/ormar-orm/ormar/blob/master/ormar/fields/foreign_key.py#L41 (opens in a new tab)x_refsource_MISC
- https://github.com/ormar-orm/ormar/blob/master/ormar/models/helpers/pydantic.py#L108 (opens in a new tab)x_refsource_MISC
- https://github.com/ormar-orm/ormar/blob/master/ormar/models/model.py#L89 (opens in a new tab)x_refsource_MISC
- https://github.com/ormar-orm/ormar/blob/master/ormar/models/newbasemodel.py#L128 (opens in a new tab)x_refsource_MISC
- https://github.com/ormar-orm/ormar/blob/master/ormar/models/newbasemodel.py#L292 (opens in a new tab)x_refsource_MISC
- https://github.com/ormar-orm/ormar/releases/tag/0.23.1 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-13198 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-f964-whrq-44h8 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-27953)Record last updated .