Report a security problem in Castlegate privately, through this repository's Security tab, Report a vulnerability. Please do not open a public issue for one.
Say what you sent, what came back and what you expected, and which QGIS Server version you ran it on. A check in tests/server/run.mjs or a unit test that shows it is the quickest way for us to reproduce it.
What Castlegate must hold to, and where to read closest, are in docs/security-review.md. What it is known not to protect is in docs/limits.md.