Skip to content

docs(security): define security model and scope for advisory triage - #12757

Merged
smith-xyz merged 2 commits into
typeorm:masterfrom
smith-xyz:docs/security-model-and-scope
Aug 7, 2026
Merged

smith-xyz merged 2 commits into
typeorm:masterfrom
smith-xyz:docs/security-model-and-scope

Conversation

@smith-xyz

Copy link
Copy Markdown
Collaborator

Description of change

  • Add a "Security Model and Scope" section to SECURITY.md defining TypeORM's trust boundary: values and database-derived content are guaranteed safe (in scope), while identifier/expression arguments, schema definitions, and configuration are developer-authored code (out of scope).
  • Clarify that runtime validations are best-effort guards, not security boundaries — bypasses that restore documented behavior are ordinary bugs.
  • Set severity expectations: CVSS must score the library's contract, not an application that pipes untrusted input into code positions.

Gives advisory reporters a published policy to read before filing and maintainers a citable basis for triage decisions, replacing per-advisory ad-hoc argument.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • This pull request links a relevant issue using a closing keyword:
    Fixes #NNNN, Closes #NNNN, or Resolves #NNNN
  • There are new or updated tests validating the change (tests/**.test.ts)
  • Documentation has been updated to reflect this change (docs/docs/**.md)

🛡️ Security fixes: Do not submit security fixes as public PRs — the diff exposes the vulnerability. Use GitHub Security Advisories instead.

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Aug 6, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

  • Author self-review: I have reviewed the code review findings, and addressed the relevant ones.

To customize comments, go to the Qodo configuration screen, or learn more in the docs.

Previous review results

Review updated until commit 93a06d8 ⚖️ Balanced

Results up to commit 152b0f1


🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Qodo Logo

@smith-xyz
smith-xyz merged commit df07bf1 into typeorm:master Aug 7, 2026
14 checks passed
@github-actions github-actions Bot added this to the 2.0.next milestone Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants