Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

michallytek/type-graphql
master @ 4535c31
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
schema/schema-generator.ts: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: Configured auth checkers were skipped during the subscription creation phase, allowing unauthorized clients to successfully initiate subscription channels. Ensure all schema generators wrap the subscription execution path with the appropriate authorization middleware.
Information Disclosure: Instantiating errors with raw target objects can serialize the entire class definition, leaking implementation details, database structures, or internal business logic in error payloads. Always use safe identifier properties like target.name instead of full string serialization.