Home / Nozbe / WatermelonDB / CVE-2020-4035
CVE-2020-4035: is it exploited, and which versions of Nozbe WatermelonDB are affected and fixed?
CVE-2020-4035 is a SQL injection vulnerability in Nozbe WatermelonDB. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: @nozbe/watermelondb before 0.15.1 and @nozbe/watermelondb from 0.16.0 before 0.16.2 (GitHub advisory GHSA-38f9-m297-6q9g). Fixed in 0.15.1 and 0.16.2 (GitHub advisory GHSA-38f9-m297-6q9g). Severity: Medium (5.9, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:16 UTC and NVD November 19, 2026, 08:10 UTC.
What is CVE-2020-4035?
DoS or local data modification via malicious record IDs in WatermelonDB
In WatermelonDB (NPM package "@nozbe/watermelondb") before versions 0.15.1 and 0.16.2, a maliciously crafted record ID can exploit a SQL Injection vulnerability in iOS adapter implementation and cause the app to delete all or selected records from the database, generally causing the app to become unusable. This may happen in apps that don't validate IDs (valid IDs are `/^[a-zA-Z0-9_-.]+$/`) and use Watermelon Sync or low-level `database.adapter.destroyDeletedRecords` method. The integrity risk is low due to the fact that maliciously deleted records won't synchronize, so logout-login will restore all data, although some local changes may be lost if the malicious deletion causes the sync process to fail to proceed to push stage. No way to breach confidentiality with this vulnerability is known. Full exploitation of SQL Injection is mitigated, because it's not possible to nest an insert/update query inside a delete query in SQLite, and it's not possible to pass a semicolon-separated second query. There's also no known practicable way to breach confidentiality by selectively deleting records, because those records will not be synchronized. It's theoretically possible that selective record deletion could cause an app to behave insecurely if lack of a record is used to make security decisions by the app. This is patched in versions 0.15.1, 0.16.2, and 0.16.1-fix
From the CVE record by GitHub_M, last updated August 4, 2024, 07:52 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Nozbe | WatermelonDB | < 0.15.1 >= 0.16.0, < 0.16.2 |
As the CVE record by GitHub_M states it, last updated August 4, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | @nozbe/watermelondb | < 0.15.1 | 0.15.1 | GHSA-38f9-m297-6q9g |
| npm | @nozbe/watermelondb | >= 0.16.0, < 0.16.2 | 0.16.2 | GHSA-38f9-m297-6q9g |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 8, 2021. Summary: DoS via malicious record IDs in WatermelonDB.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| nozbe | watermelondb | before 0.15.1 | application |
| nozbe | watermelondb | 0.16.0 | application |
| nozbe | watermelondb | 0.16.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:19 UTC.
How severe is CVE-2020-4035?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H | GitHub_M |
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H | NVD |
| Medium 5.5 | CVSS 2.0 | AV:N/AC:L/Au:S/C:N/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2020-4035 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.76% probability of exploitation activity in the next 30 days, percentile 56.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and references?
- https://github.com/Nozbe/WatermelonDB/security/advisories/GHSA-38f9-m297-6q9g x_refsource_CONFIRM
- https://github.com/Nozbe/WatermelonDB/commit/924c7ae2a8d7d6459656751e5b9b1bf91a218025 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- December 30, 2019
- Published
- June 3, 2020, 16:50 UTC
- CVE record updated
- August 4, 2024, 07:52 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 03:19 UTC
- Last checked
- CVE list November 19, 2026, 07:16 UTC; NVD November 19, 2026, 08:10 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2020-4035
Is CVE-2020-4035 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 0.76% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Nozbe WatermelonDB are affected by CVE-2020-4035?
@nozbe/watermelondb before 0.15.1 and @nozbe/watermelondb from 0.16.0 before 0.16.2, per the GitHub advisory GHSA-38f9-m297-6q9g. The tables above give every range the sources list.
Which version fixes CVE-2020-4035?
0.15.1 and 0.16.2, per the GitHub advisory GHSA-38f9-m297-6q9g. Check the vendor's advisory before you rely on it.
How severe is CVE-2020-4035?
Medium (5.9, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2020-4035?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.