CVE catalog

CVE-2026-27953

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 validati

[CVE catalog]

Severity
High · CVSS 7.1
Published
Source
[NVD] · [CVE record]
EPSS
1.21% · Oct 25, 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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianormarsid0.26.0-1fixed
Debianormarforky0.26.0-1fixed
Debianormarbookworm0.12.0-3vulnerable
PipormarNot reported0.23.1fixed
CpeormarNot reportedNot reportedvulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianormarsourcesid0.23.1-1not yet assignedNot reported[1131494]
Debianormarsourceforky0.23.1-1not yet assignedNot reported[1131494]
Debianormarsourcebookworm(unfixed)not yet assignedNot reported[1131494]
PipormarpipNot reported0.23.1Not reportedNot reportedNot reported

[Debian bug #1131494]

Notes

[bookworm] ormar: Low popcon

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-ormar]Affected

    Source package: [ormar]

    Details (2)
    • 0.12.0-3 · all · bookworm

      Affected

      nvd · ormar · debian · bookworm; nvd · ormar · debian · 12

    • 0.12.0-3 · all · bookworm

      Affected

      nvd · ormar · debian · bookworm; nvd · ormar · debian · 12

Observed:

References