{"cve":"CVE-2026-27953","nvd":{"published":"2026-03-19T21:17:09.573","modified":"2026-06-17T10:27:58.157","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-20","CWE-915"],"references":["https://github.com/ormar-orm/ormar/blob/master/examples/fastapi_quick_start.py#L55","https://github.com/ormar-orm/ormar/blob/master/ormar/fields/foreign_key.py#L41","https://github.com/ormar-orm/ormar/blob/master/ormar/models/helpers/pydantic.py#L108","https://github.com/ormar-orm/ormar/blob/master/ormar/models/model.py#L89","https://github.com/ormar-orm/ormar/blob/master/ormar/models/newbasemodel.py#L128"],"products":["collerek:ormar"],"source":"nvd","synced_at":"2026-10-19T22:26:19.218427112+00:00"},"epss":{"cve":"CVE-2026-27953","score":0.01211,"percentile":0.68463,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f964-whrq-44h8","url":"https://osv.dev/vulnerability/GHSA-f964-whrq-44h8","summary":"ormar Pydantic Validation Bypass via __pk_only__ and __excluded__ Kwargs Injection in Model Constructor","modified":"2026-07-13T07:26:39.416839876Z","packages":[{"ecosystem":"PyPI","name":"ormar","purl":"pkg:pypi/ormar","ranges":["<0.23.1"],"fixed":["0.23.1"]}]},{"id":"PYSEC-2026-2247","url":"https://osv.dev/vulnerability/PYSEC-2026-2247","summary":"","modified":"2026-07-13T07:15:39.669742060Z","packages":[{"ecosystem":"PyPI","name":"ormar","purl":"pkg:pypi/ormar","ranges":["<0.23.1"],"fixed":["0.23.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}