{"answers":{"affected":"2 open source packages ship an affected version, including facturascripts/facturascripts. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-25513 in the wild and no public exploit code.","fix":"Upgrade facturascripts/facturascripts to 2025.81 or later.","what":"CVE-2026-25513 is a high-severity SQL injection vulnerability in NeoRazorX facturascripts, published on 4 Feb 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-25513 and fix it if it is affected.\n\nWhat it is: CVE-2026-25513 is a high-severity SQL injection vulnerability in NeoRazorX facturascripts, published on 4 Feb 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-25513 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- facturascripts/facturascripts (Packagist): affected all versions; fixed in 2025.81\n- facturascripts/facturascripts (Packagist): affected all versions; fixed in 2025.81\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/CVE-2026-25513/ (Markdown: https://insights.sbomify.com/CVE-2026-25513/index.md)","id":"CVE-2026-25513","markdown":"https://insights.sbomify.com/CVE-2026-25513/index.md","name":"CVE-2026-25513","record":{"aliases":["GHSA-cjfx-qhwm-hf99"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"ERP accounting software","requires_auth":"low_privilege","summary":"Authenticated users can execute arbitrary SQL queries via the sort parameter in the REST API, potentially accessing or modifying data.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"facturascripts","vendor":"facturascripts"}],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-943","name":"Improper Neutralization of Special Elements in Data Query Logic"},{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"},{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-1286","name":"Improper Validation of Syntactic Correctness of Input"}],"description":"FacturaScripts is open-source enterprise resource planning and accounting software. Prior to version 2025.81, FacturaScripts contains a critical SQL injection vulnerability in the REST API that allows authenticated API users to execute arbitrary SQL queries through the sort parameter. The vulnerability exists in the ModelClass::getOrderBy() method where user-supplied sorting parameters are directly concatenated into the SQL ORDER BY clause without validation or sanitization. This affects all API endpoints that support sorting functionality. This issue has been patched in version 2025.81.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":"2026-04-11","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-04-11T19:14:24Z","kind":"github_poc","ref":"https://github.com/lukasz-rybak/CVE-2026-25513","stars":0,"title":"CVE-2026-25513 - FacturaScripts has SQL Injection in API ORDER BY Clause"}],"tier":"poc_unverified"},"has_fix":true,"headline":"FacturaScripts has SQL Injection vulnerability in API ORDER BY Clause","id":"CVE-2026-25513","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"FacturaScripts has SQL Injection vulnerability in Autocomplete Actions","id":"CVE-2026-25514"},"packages":[{"ecosystem":"Packagist","fixed":["2025.81"],"introduced":["0"],"last_affected":[],"package":"facturascripts/facturascripts","purl":null,"source":"GHSA-cjfx-qhwm-hf99"},{"ecosystem":"Packagist","fixed":["2025.81"],"introduced":["0"],"last_affected":[],"package":"facturascripts/facturascripts","purl":"pkg:composer/facturascripts/facturascripts","source":"GHSA-cjfx-qhwm-hf99"}],"prev":{"headline":"Group-Office is vulnerable to RCE due to Command Injection via TNEF Attachment Handler","id":"CVE-2026-25512"},"products":["facturascripts"],"published":"2026-02-04","related":[{"cvss_score":9.9,"headline":"Cross-site scripting - Reflected in Create Subaccount in neorazorx/facturascripts","id":"CVE-2022-1571","kev_date_added":null,"published":"2022-05-04"},{"cvss_score":9.8,"headline":"Account Takeover in neorazorx/facturascripts","id":"CVE-2022-1715","kev_date_added":null,"published":"2022-05-13"},{"cvss_score":9.4,"headline":"Reflected Xss using url based payload in neorazorx/facturascripts","id":"CVE-2022-1682","kev_date_added":null,"published":"2022-05-12"},{"cvss_score":9,"headline":"Stored XSS via upload plugin functionality in zip format in neorazorx/facturascripts","id":"CVE-2022-1514","kev_date_added":null,"published":"2022-04-28"},{"cvss_score":9,"headline":"Store XSS in title parameter executing at EditUser Page \u0026 EditProducto page in neorazorx/facturascripts","id":"CVE-2022-1457","kev_date_added":null,"published":"2022-04-25"},{"cvss_score":8.7,"headline":"FacturaScripts has SQL Injection vulnerability in Autocomplete Actions","id":"CVE-2026-25514","kev_date_added":null,"published":"2026-02-04"},{"cvss_score":8.6,"headline":"Cross-site Scripting (XSS) - Stored in neorazorx/facturascripts","id":"CVE-2022-2065","kev_date_added":null,"published":"2022-06-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-05","vendors":["NeoRazorX"]},"summary":"Authenticated users can execute arbitrary SQL queries via the sort parameter in the REST API, potentially accessing or modifying data.","url":"https://insights.sbomify.com/CVE-2026-25513/"}