CVE-2026-27953
March 19, 2026
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.
Affected Packages
ormar (CONDA):
Affected version(s) >=0.10.14 <0.23.1Fix Suggestion:
Update to version 0.23.1https://github.com/ormar-orm/ormar.git (GITHUB):
Affected version(s) >=0.3.0 <0.23.1Fix Suggestion:
Update to version 0.23.1ormar (PYTHON):
Affected version(s) >=0.1.0 <0.23.1Fix Suggestion:
Update to version 0.23.1Additional Notes
The description of this vulnerability differs from MITRE.
Related Resources (11)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
LOW
Weakness Type (CWE)
EPSS
Base Score:
0.13