# CVE-2020-21176: SQL Injection in thinkjs

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.51%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-01T17:37:56.000Z
- Modified: 2026-06-17T03:03:35.600Z
- Also known as: GHSA-q5mq-6fjg-4mw8
- Weaknesses: CWE-89
- Assigned by: mitre

## Description

SQL injection vulnerability in the model.increment and model.decrement function in ThinkJS 3.2.10 allows remote attackers to execute arbitrary SQL commands via the step parameter.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- thinkjs (npm): up to 3.2.14
- thinkjs thinkjs: 3.2.10

## Every score

- GitHub: CVSS:3.1 9.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://blog.jiguang.xyz/posts/thinkjs-sql-injection/> (exploit, third-party-advisory)
- <https://github.com/thinkjs/thinkjs> (package, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-21176> (advisory)
- <https://blog.jiguang.xyz/posts/thinkjs-sql-injection> (web)

## Sources

- CVE List: [CVE-2020-21176](https://www.cve.org/CVERecord?id=CVE-2020-21176), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-q5mq-6fjg-4mw8](https://github.com/advisories/GHSA-q5mq-6fjg-4mw8), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-21176](https://nvd.nist.gov/vuln/detail/CVE-2020-21176), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-21176 · Whole record: https://cve.day/CVE-2020-21176.json · Rebuilt by cve.day 2026-11-25T22:57:57.248Z
