Google's John Mueller explains the SEO impact of random URLs injected by CMS platforms into the raw HTML of web pages.
Any data that enters your system from outside a trust boundary should be treated as untrusted until proven otherwise. That includes form fields, API payloads, file uploads, headers, cookies, queue ...