DoS or local data modification via malicious record IDs in WatermelonDB
Published Jun 3, 2020
5.9
MEDIUMCVSS 3.1
EPSS 0.76%
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
Affected products
-
- Version < 0.15.1StatusaffectedConstraints-
- Version >= 0.16.0, < 0.16.2StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Nozbe | WatermelonDB | n/a |
|
- < 0.15.1
- 0.16.0
- 0.16.1
No data.
No Red Hat product state for this CVE.
@nozbe/watermelondb
npm
Introduced 0 Fixed 0.15.1@nozbe/watermelondb
npm
Introduced 0.16.0 Fixed 0.16.2
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | @nozbe/watermelondb | 0 | 0.15.1 |
| npm | @nozbe/watermelondb | 0.16.0 | 0.16.2 |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:S/C:N/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 0.76% (0.00763) | 53.82th | v5 (v2026.06.15) |
| Sep 20, 2026 | 0.76% (0.00763) | 53.87th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.08% (0.00076) | 33.20th | v3 (v2023.03.01) |
| Jun 12, 2024 | 0.08% (0.00076) | 32.73th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.08% (0.00076) | 30.71th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Feb 4, 2022 | 4.50% (0.04499) | 74.08th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.74% (0.02742) | 63.06th | v1 |
| Jan 6, 2022 | 2.74% (0.02742) | 62.72th | v1 |
| Jan 5, 2022 | 0.62% (0.00624) | 46.35th | v5 (v2026.06.15) |
| Apr 14, 2021 | 0.62% (0.00624) | 0.00th | v1 |
References (4)
- https://github.com/Nozbe/WatermelonDB/commit/924c7ae2a8d7d6459656751e5b9b1bf91a218025 x_refsource_MISCPatchThird Party Advisory
- https://github.com/Nozbe/WatermelonDB/security/advisories/GHSA-38f9-m297-6q9g x_refsource_CONFIRMThird Party Advisory
- https://github.com/advisories/GHSA-38f9-m297-6q9g Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2020-4035
| Link | Providers | Tags |
|---|---|---|
| https://github.com/Nozbe/WatermelonDB/commit/924c7ae2a8d7d6459656751e5b9b1bf91a218025 | x_refsource_MISCPatchThird Party Advisory | |
| https://github.com/Nozbe/WatermelonDB/security/advisories/GHSA-38f9-m297-6q9g | x_refsource_CONFIRMThird Party Advisory | |
| https://github.com/advisories/GHSA-38f9-m297-6q9g | Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-4035 |
Change history (0)
No recorded changes yet.