U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2026-27953 Detail

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.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

URL Source(s) Tag(s)
https://github.com/ormar-orm/ormar/blob/master/examples/fastapi_quick_start.py#L55 GitHub, Inc.
https://github.com/ormar-orm/ormar/blob/master/ormar/fields/foreign_key.py#L41 GitHub, Inc.
https://github.com/ormar-orm/ormar/blob/master/ormar/models/helpers/pydantic.py#L108 GitHub, Inc.
https://github.com/ormar-orm/ormar/blob/master/ormar/models/model.py#L89 GitHub, Inc.
https://github.com/ormar-orm/ormar/blob/master/ormar/models/newbasemodel.py#L128 GitHub, Inc.
https://github.com/ormar-orm/ormar/blob/master/ormar/models/newbasemodel.py#L292 GitHub, Inc.
https://github.com/ormar-orm/ormar/commit/7f22aa21a7614b993970345b392dabb0ccde0ab3 GitHub, Inc.
https://github.com/ormar-orm/ormar/releases/tag/0.23.1 GitHub, Inc.
https://github.com/ormar-orm/ormar/security/advisories/GHSA-f964-whrq-44h8 GitHub, Inc.

Weakness Enumeration

CWE-ID CWE Name Source
CWE-20 Improper Input Validation GitHub, Inc.  
CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes GitHub, Inc.  

Change History

1 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2026-27953
NVD Published Date:
03/19/2026
NVD Last Modified:
03/19/2026
Source:
GitHub, Inc.