{"stack":{"key":"postgresql-orm","name":"PostgreSQL / ORM","scope":"Applications that store data in PostgreSQL, directly or through an ORM or query builder."},"stacks":[{"key":"postgresql-orm","name":"PostgreSQL / ORM","scope":"Applications that store data in PostgreSQL, directly or through an ORM or query builder."}],"level":1,"item_count":1,"chapters":[{"id":"V1","name":"Encoding and Sanitization","sections":[{"id":"V1.2","name":"Injection Prevention","cheat_sheets":[{"name":"Bean Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Bean_Validation_Cheat_Sheet.html"},{"name":"Cross Site Scripting Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html"},{"name":"DOM based XSS Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html"},{"name":"File Upload Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html"},{"name":"Injection Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html"},{"name":"Input Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html"},{"name":"Java Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Java_Security_Cheat_Sheet.html"},{"name":"LDAP Injection Prevention","url":"https://cheatsheetseries.owasp.org/cheatsheets/LDAP_Injection_Prevention_Cheat_Sheet.html"},{"name":"OS Command Injection Defense","url":"https://cheatsheetseries.owasp.org/cheatsheets/OS_Command_Injection_Defense_Cheat_Sheet.html"},{"name":"Query Parameterization Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html"},{"name":"SQL Injection Prevention","url":"https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html"},{"name":"XML External Entity Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html"},{"name":"XML Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XML_Security_Cheat_Sheet.html"},{"name":"XSS Filter Evasion Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XSS_Filter_Evasion_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-1.2.4","level":1,"requirement":"Verify that data selection or database queries (e.g., SQL, HQL, NoSQL, Cypher) use parameterized queries, ORMs, entity frameworks, or are otherwise protected from SQL Injection and other database injection attacks. This is also relevant when writing stored procedures.","category":"build-stack","relevance":"core","applies_when":null,"note":"Use bound parameters; review raw SQL, dynamic ORDER BY or column names, and user-supplied regular expressions in queries.","stacks":["postgresql-orm"],"by_stack":[{"stack":"postgresql-orm","category":"build-stack","relevance":"core","applies_when":null,"note":"Use bound parameters; review raw SQL, dynamic ORDER BY or column names, and user-supplied regular expressions in queries."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"}]}]}],"grouping_notice":"The grouping by stack is Helm's own curation and is not endorsed by OWASP. The requirements are OWASP's, from ASVS 5.0.0.","attribution":"Requirements: OWASP Application Security Verification Standard 5.0.0, (c) OWASP Foundation, licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0), https://creativecommons.org/licenses/by-sa/4.0/. Source: https://github.com/OWASP/ASVS/tree/v5.0.0_release. The grouping by stack (PostgreSQL / ORM), the relevance labels and the notes are Helm's own editorial curation, not an OWASP product, and are not endorsed by OWASP. Cheat sheet links point to the OWASP Cheat Sheet Series (CC BY-SA 4.0). Completing a checklist means the listed controls were considered; it does not mean a system is secure.","mapping_date":"2026-11-24","sources":[{"source_name":"OWASP ASVS","source_record_id":"5.0.0","source_database":null,"source_url":"https://github.com/OWASP/ASVS/tree/v5.0.0_release","source_license":"CC-BY-SA-4.0","schema_version":"5.0.0","upstream_modified_at":"2025-05-30T09:34:29Z","fetched_at":"2026-11-24T22:53:07.225539Z"},{"source_name":"OWASP Cheat Sheet Series","source_record_id":"18e6c89f960e10a5b64f7c882c2b9dc17c423d10","source_database":null,"source_url":"https://cheatsheetseries.owasp.org/","source_license":"CC-BY-SA-4.0","schema_version":null,"upstream_modified_at":null,"fetched_at":"2026-11-24T22:53:07.225539Z"},{"source_name":"helm-curation","source_record_id":"2026-11-24","source_database":null,"source_url":null,"source_license":"CC-BY-SA-4.0","schema_version":null,"upstream_modified_at":null,"fetched_at":"2026-11-24T22:53:07.225539Z"}]}