BreachSpiderVerified, not vibes

CVE-2020-4035 in Nozbe Watermelondb

Medium 5.9

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 ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.15.9
EPSS0.8%
EPSS percentile52th
FixUnknown

Remotely exploitable over the network, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Nozbe Watermelondb 0.16.0 0.16.1 < 0.15.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2020-4035
BreachSpider IDBS-2020-GLOBAL-184588-M
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Published2020-06-03
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-89: SQL Injection

Attacker inserts SQL commands into application queries through user-controlled input, allowing unauthorized database access.

Related attack patterns (CAPEC)

CAPEC-7 Blind SQL Injection via CWE-89

CAPEC-108 Command Line Execution through SQL Injection via CWE-89

CAPEC-109 Object Relational Mapping Injection via CWE-89

CAPEC-110 SQL Injection through SOAP Parameter Tampering via CWE-89

CAPEC-470 Expanding Control over the Operating System from the Database via CWE-89

Show all 6

CAPEC-66 SQL Injection via CWE-89

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2020. A medium severity vulnerability affects Nozbe systems (CVE-2020-4035). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: 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 i CVSS vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H.

Questions

What is CVE-2020-4035?

This vulnerability was disclosed in 2020. A medium severity vulnerability affects Nozbe systems (CVE-2020-4035). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2020-4035?

CVE-2020-4035 has CVSS 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H. EPSS: 0.8%.

Is CVE-2020-4035 actively exploited?

No confirmed active exploitation of CVE-2020-4035 as of 2026-09-25.

How do I remediate CVE-2020-4035?

Priority: MONITOR.

What systems are affected by CVE-2020-4035?

CVE-2020-4035 affects Nozbe Watermelondb.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Nozbe","product":"Watermelondb","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.