{"answers":{"affected":"2 open source packages ship an affected version, including @curveball/a12n-server.","exploited":"There is no known exploitation of GHSA-crhg-xgrg-vvcc in the wild and no public exploit code.","fix":"Upgrade @curveball/a12n-server to 0.23.0 or later.","what":"GHSA-crhg-xgrg-vvcc is a SQL injection vulnerability in @curveball/a12n-server, published on 13 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-crhg-xgrg-vvcc and fix it if it is affected.\n\nWhat it is: GHSA-crhg-xgrg-vvcc is a SQL injection vulnerability in @curveball/a12n-server, published on 13 Jan 2023. 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-crhg-xgrg-vvcc in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @curveball/a12n-server (npm): affected from 0.20.0; fixed in 0.23.0\n- @curveball/a12n-server (npm): affected from 0.20.0; fixed in 0.23.0\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-crhg-xgrg-vvcc/ (Markdown: https://insights.sbomify.com/GHSA-crhg-xgrg-vvcc/index.md)","id":"GHSA-crhg-xgrg-vvcc","markdown":"https://insights.sbomify.com/GHSA-crhg-xgrg-vvcc/index.md","name":"GHSA-crhg-xgrg-vvcc","record":{"aliases":[],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"OAuth2 server","requires_auth":"none","summary":"SQL injection in a12nserver with MySQL allows attackers to steal OAuth2 access tokens for unrelated users.","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":"### Impact\n\nUsers of a12nserver that use MySQL might be vulnerable to SQL injection bugs. \n\nIf you use a12nserver and MySQL, update as soon as possible. This SQL injection bug might let an attacker obtain OAuth2 Access Tokens for users unrelated to those that permitted OAuth2 clients.\n\n### Patches\n\nThe knex dependency has been updated to 2.4.0 in a12nserver 0.23.0\n\n### Workarounds\n\nNo further workarounds\n\n### References\n\n* https://github.com/knex/knex/issues/1227\n* https://nvd.nist.gov/vuln/detail/CVE-2016-20018\n* https://www.ghostccamm.com/blog/knex_sqli/","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"a12nserver vulnerable to potential SQL Injections via Knex dependency","id":"GHSA-crhg-xgrg-vvcc","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"sql_injection","year":"2023"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["0.23.0"],"introduced":["0.20.0"],"last_affected":[],"package":"@curveball/a12n-server","purl":null,"source":"GHSA-crhg-xgrg-vvcc"},{"ecosystem":"npm","fixed":["0.23.0"],"introduced":["0.20.0"],"last_affected":[],"package":"@curveball/a12n-server","purl":"pkg:npm/%40curveball/a12n-server","source":"GHSA-crhg-xgrg-vvcc"}],"products":null,"published":"2023-01-13","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"SQL injection in a12nserver with MySQL allows attackers to steal OAuth2 access tokens for unrelated users.","url":"https://insights.sbomify.com/GHSA-crhg-xgrg-vvcc/"}