Skip to content

[GHSA-3xgx-r9j4-qw9w] dexie: backport to 3.0.4 not reflected - #9381

Open
zyl71 wants to merge 1 commit into
github:zyl71/advisory-improvement-9381from
zyl71:fix/GHSA-3xgx-r9j4-qw9w
Open

[GHSA-3xgx-r9j4-qw9w] dexie: backport to 3.0.4 not reflected#9381
zyl71 wants to merge 1 commit into
github:zyl71/advisory-improvement-9381from
zyl71:fix/GHSA-3xgx-r9j4-qw9w

Conversation

@zyl71

@zyl71 zyl71 commented Sep 7, 2026

Copy link
Copy Markdown

Updates

  • Affected products

Comments
Current record: npm:dexie: introduced=0 fixed=3.2.2 | introduced=4.0.0-alpha.1 fixed=4.0.0-alpha.3
Proposed: npm:dexie: introduced=0 fixed=3.0.4 | introduced=4.0.0-alpha.1 fixed=4.0.0-alpha.3 | introduced=3.1.0-alpha.1 fixed=3.2.2

The prototype-pollution fix was also backported to the 3.0 branch and published as dexie 3.0.4 on 2022-04-29 (commit 3b927b92, the same one-line hunk as 1d655a69; the npm tarball's dist/dexie.js contains the new hasOwn guard, 3.0.3's does not), so "< 3.2.2" wrongly flags 3.0.4. Splitting the range is therefore right, but the second range has to start at 3.1.0-alpha.1 rather than 3.1.0: dexie published twelve 3.1.0-alpha/beta builds (3.1.0-alpha.1 on 2020-11-19 through 3.1.0-beta.13 on 2021-06-07; no final 3.1.0 was ever released) that all predate the fix and would otherwise be reported as unaffected.

Release lines around the fix (2022-04-27): 3.0.x - 3.0.3 (2020-11-18) last unfixed, 3.0.4 (2022-04-29) fixed by the backport. The twelve 3.1.0 pre-releases are all vulnerable; in semver they sort above 3.0.4 and below 3.1.0, so [0, 3.0.4) plus [3.1.0, 3.2.2) would leave them uncovered, which is why the second range starts at 3.1.0-alpha.1. 3.2.x - 3.2.0-beta.1 (2021-06-27) through 3.2.1 (2022-02-16) vulnerable, 3.2.2 (2022-04-27) fixed, 3.2.3 (2023-01-23) later. 4.0.0-alpha.1 and 4.0.0-alpha.2 vulnerable, 4.0.0-alpha.3 fixed (kept from the record), 4.0.0-alpha.4 later. Everything up to 3.0.3 (0.9.9, 1.x, 2.x, 3.0.0-3.0.3 including the alpha/rc builds) stays inside 0 -> 3.0.4.

Maintainer statements: the advisory text says "before 3.2.2, from 4.0.0-alpha.1 and before 4.0.0-alpha.3" and does not mention 3.0.4. The release notes for v3.2.2 and v4.0.0-alpha.3 are both headed "Security fix" and read "Prohibit possible prototype pollution in Dexie.setByKeyPath()", linking commit 1d655a69. There is no GitHub release for v3.0.4, but it was published two days later from the 3.0 branch carrying the identical commit. No statement contradicts this.

Evidence:

Version checks:

  • dexie 3.0.4 (npm 2022-04-29): contains the fix via backport 3b927b9281eb56d71b0edd844a28e48debc171a8 on the 3.0 branch (same message and author date as 1d655a69, identical one-line hunk if (!innerObj || !hasOwn(obj, currentKeyPath))); confirmed by the compare API and by grepping the tarball. Previous release 3.0.3: not fixed.
  • dexie 3.2.2 (npm 2022-04-27): contains the fix (v3.2.2...1d655a69 = behind; the tarball has the line, 3.2.1's does not). Previous release 3.2.1: not fixed.
  • dexie 4.0.0-alpha.3 (npm 2022-04-27): contains the fix via 7e03b7847c on the 4.0 branch; the tarball has the line. Previous release 4.0.0-alpha.2: not fixed.

This comes from a systematic comparison of advisory ranges with fix commits and published registry artifacts. Happy to adjust if the maintainers intend otherwise.

@github-actions
github-actions Bot changed the base branch from main to zyl71/advisory-improvement-9381 September 7, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant