Security mailing lists by PureSourceCode

CVE-2026-27953

CRITICAL 9.8CVSS 3.1

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

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.

Published
19 Mar 2026
Last modified
13 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-20
Also known as
GHSA-f964-whrq-44h8PYSEC-2026-2247
Sources
NVDJSONOSV GHSA-f964-whrq-44h8JSONOSV PYSEC-2026-2247JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
OSV GitHub CVSS 3.1 HIGH 7.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD collerek ormar
cpe:2.3:a:collerek:ormar:*:*:*:*:*:python:*:*
< 0.23.1 0.23.1
OSV PyPI ormar < 0.23.1 0.23.1

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 19 Mar 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Mar 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Mar 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.