{"answers":{"affected":"3 open source packages ship an affected version, including github.com/authorizerdev/authorizer.","exploited":"There is no known exploitation of GHSA-jfwg-rxf3-p7r9 in the wild and no public exploit code.","fix":"Upgrade github.com/authorizerdev/authorizer to 0.0.0-20260327055742-73679faa53cd or later.","what":"GHSA-jfwg-rxf3-p7r9 is a SQL injection vulnerability in github.com/authorizerdev/authorizer, published on 6 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-jfwg-rxf3-p7r9 and fix it if it is affected.\n\nWhat it is: GHSA-jfwg-rxf3-p7r9 is a SQL injection vulnerability in github.com/authorizerdev/authorizer, published on 6 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-jfwg-rxf3-p7r9 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/authorizerdev/authorizer (Go): affected all versions; fixed in 0.0.0-20260327055742-73679faa53cd\n- github.com/authorizerdev/authorizer (Go): affected all versions; fixed in 0.0.0-20260327055742-73679faa53cd\n- github.com/authorizerdev/authorizer (Go): affected all versions; fixed in 0.0.0-20260327055742-73679faa53cd\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-jfwg-rxf3-p7r9/ (Markdown: https://insights.sbomify.com/GHSA-jfwg-rxf3-p7r9/index.md)","id":"GHSA-jfwg-rxf3-p7r9","markdown":"https://insights.sbomify.com/GHSA-jfwg-rxf3-p7r9/index.md","name":"GHSA-jfwg-rxf3-p7r9","record":{"aliases":["GO-2026-5467"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go authentication server","requires_auth":"none","summary":"Unauthenticated attackers can inject CQL queries via public endpoints to bypass authentication or extract data in Authorizer with Cassandra backend.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"## Vulnerability Details\n\n**CWE:** CWE-943 - Improper Neutralization of Special Elements in Data Query Logic\n\nAll 66+ CQL queries in `internal/storage/db/cassandradb/` use `fmt.Sprintf` to interpolate user-controlled values directly into CQL query strings without parameterization.\n\nUnauthenticated endpoints (`signup`, `login`, `forgot_password`, `magic_link_login`) pass user input directly into CQL query strings.\n\n**Note:** This advisory covers the Cassandra CQL injection only. The Couchbase N1QL injection is tracked in a separate advisory per CVE rule 4.2.11.\n\n## Affected Code Pattern\n\n```go\n// Before (VULNERABLE) - e.g. cassandradb/user.go\nquery := fmt.Sprintf(\"SELECT ... FROM %s WHERE email = '%s'\", table, email)\nerr := p.db.Query(query).Scan(...)\n```\n\n## Steps to Reproduce\n\n1. Deploy Authorizer \u003c= 2.0.0 with Cassandra backend\n2. Send a signup request with a CQL injection payload in the email field:\n\n```bash\ncurl -X POST http://localhost:8080/graphql \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"query\":\"mutation { signup(params: { email: \\\"test'\\\" }) { message } }\"}'\n```\n\n3. The single quote breaks out of the CQL string literal, causing a CQL parse error that leaks internal schema information\n4. Crafted payloads can manipulate query logic to bypass authentication or extract data\n\n## Affected Files (10 Cassandra files)\n\n| Package | File | Queries Fixed |\n|---------|------|--------------|\n| cassandradb | user.go | 7 |\n| cassandradb | otp.go | 4 |\n| cassandradb | session_token.go | 19 |\n| cassandradb | verification_requests.go | 4 |\n| cassandradb | authenticator.go | 3 |\n| cassandradb | email_template.go | 5 |\n| cassandradb | webhook.go | 5 |\n| cassandradb | webhook_log.go | 2 |\n| cassandradb | session.go | 1 |\n| cassandradb | env.go | 2 |\n\n## Impact\n\nAn unauthenticated attacker can inject arbitrary CQL operators through the email, phone, or token parameters on public-facing endpoints (signup, login, forgot_password, magic_link_login). This enables authentication bypass and data exfiltration from the Cassandra keyspace.\n\n## Proposed Fix\n\nUse parameterized queries:\n\n```go\n// After (FIXED)\nquery := fmt.Sprintf(\"SELECT ... FROM %s WHERE email = ?\", table)\nerr := p.db.Query(query, email).Scan(...)\n```\n\nFixed in https://github.com/authorizerdev/authorizer/pull/500 (merged 2026-03-27).","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Authorizer: CQL/N1QL Injection in Cassandra and Couchbase Backends via fmt.Sprintf String Interpolation","id":"GHSA-jfwg-rxf3-p7r9","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.0.0-20260327055742-73679faa53cd"],"introduced":["0"],"last_affected":[],"package":"github.com/authorizerdev/authorizer","purl":null,"source":"GHSA-jfwg-rxf3-p7r9"},{"ecosystem":"Go","fixed":["0.0.0-20260327055742-73679faa53cd"],"introduced":["0"],"last_affected":[],"package":"github.com/authorizerdev/authorizer","purl":"pkg:golang/github.com/authorizerdev/authorizer","source":"GHSA-jfwg-rxf3-p7r9"},{"ecosystem":"Go","fixed":["0.0.0-20260327055742-73679faa53cd"],"introduced":["0"],"last_affected":[],"package":"github.com/authorizerdev/authorizer","purl":"pkg:golang/github.com/authorizerdev/authorizer","source":"GO-2026-5467"}],"products":null,"published":"2026-04-06","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Unauthenticated attackers can inject CQL queries via public endpoints to bypass authentication or extract data in Authorizer with Cassandra backend.","url":"https://insights.sbomify.com/GHSA-jfwg-rxf3-p7r9/"}