Repository navigation
Description
Summary
Hi maintainers,
I audited the dependency tree and found two categories of dependency health issues in the current develop branch.
This is a maintenance request regarding dependency health, not a new feature request. The Bug Report template requires reproducible user-facing behavior, which does not fit dependency version issues. I am using this template as the closest available channel.
1. Deprecated transitive dependencies
pnpm-lock.yaml contains several packages marked as deprecated on the npm registry. They are pulled in through transitive dependency chains and pnpm still installs them.
The most notable is [email protected], whose deprecation message states:
Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version.
Other deprecated packages include:
[email protected]— "This package is no longer supported. Please use @npmcli/package-json instead."[email protected]— "This package is no longer supported."[email protected][email protected][email protected]
These packages no longer receive security updates. If a new CVE is found in any of them, the upstream author is unlikely to publish a fix.
Suggested fix
Eliminating these requires upstream packages (e.g., license-checker, electron-builder) to update their dependency declarations, or the project to switch to alternatives. If any of these chains can be traced to a direct dependency with a maintained alternative, that would be the cleaner fix.
2. Potential vulnerable locked versions
Two packages are resolved to versions that fall within known CVE affected ranges. I am reporting these as version-level facts; whether they are actually triggerable in MarkText depends on runtime usage patterns that I cannot confirm from the public code alone.
Electron 42.1.0 — CVE-2026-70606
-
package.jsondeclareselectronto~42.1.0. The resolved version 42.1.0 falls within the CVE's affected range:>= 42.0.0-alpha.1, < 42.5.1. -
The vulnerability requires a custom protocol handler that returns a
ProtocolResponsewith aurlbut without asession, and relies on separate sessions to isolate content. Whether MarkText's actual usage pattern matches these conditions would need confirmation from the maintainers.
PostCSS 8.5.15 — CVE-2026-69153
-
pnpm-workspace.yamlcontains anoverridesentry that pinspostcssto8.5.15. This version is affected by CVE-2026-69153 (CVSS 4.0: 6.3, Medium). The fix is available in 8.5.19. -
I understand this override may have been introduced deliberately to resolve a transitive dependency conflict (feat(muya): migrate TS rewrite to packages/muya alongside legacy muyajs by Jocs · Pull Request #4314 · marktext/marktext). In this case, it would help future readers if the
overridesentry inpnpm-workspace.yamlcarried a short comment explaining whypostcssis pinned to this specific version. Right now the reason is only discoverable by digging through commit history, which makes it easy for a future contributor to "fix" the pin without realizing it was intentional.
References
- CVE-2026-70606: https://nvd.nist.gov/vuln/detail/cve-2026-70606
- CVE-2026-69153: https://nvd.nist.gov/vuln/detail/cve-2026-69153
pnpm-workspace.yaml,package.json,pnpm-lock.yaml
Thanks.
Activity
Jocs commentedon Oct 9, 2026
Thanks for the audit — the two vulnerable locked versions are fixed by the dependency upgrade prepared on
develop.Electron
~42.1.0→~44.7.0. Note 42.1.0 matched more than CVE-2026-70606: it was also affected by CVE-2026-102673 (fixed 42.5.2) and CVE-2026-102674/102675/102676 (fixed 42.9.2), so staying on the latest 42.x would not have been enough. Electron 44 rearchitected the clipboard module (W3C-style async API; syncreadImage/writeImage/readBufferand raw-format reads are gone), so the main-process clipboard helpers, the screenshot path and two e2e specs were migrated and re-verified.PostCSS override
8.5.15→8.5.29. One correction to the report: 8.5.19 was an incomplete fix for CVE-2026-69153 — the advisory is only closed in 8.5.23. 8.5.15 also carried CVE-2026-73646 (fixed 8.5.18).Deprecated transitive packages are not addressed in this pass, for the reasons you noted:
license-checker(→ read-installed, read-package-json, osenv, glob@7) is unmaintained and only feeds our third-party-license scripts, the remaining glob@7/boolean chains come from electron-builder 26.15.3 (already latest) through CJS-only@electron/asar/@electron/get, and prebuild-install comes from keytar, which has no newer release. Removing those needs replacements rather than version bumps.Also upgraded in the same change: vite 8, vitest 5, ESLint 10, neostandard 0.14, Playwright 1.64, Next 16 (website), plus Vue/Vue Router/Pinia/mermaid/katex/minimatch updates. Held back where
latestis a rewrite or unsupported by tooling: TypeScript stays on 6.0.3 (TS 7 crashes vue-tsc and is explicitly rejected by typescript-eslint), vue-tsc on 3.3.11 (3.3.12 loses<script setup>scope resolution), CodeMirror on 5.x (v6 is a different API and would require rewriting source mode).Verified on the upgraded tree:
typecheck, ESLint (desktop + muya + website), 1068 desktop unit tests, 2467 muya tests, the desktop e2e suite (348 passed / 3 failed / 5 skipped — the 3 are locale-dependent i18n assertions that also fail on the pre-upgrade tree on a zh-CN machine), and the website build.chore(deps): upgrade workspace dependencies and fix locked CVEs
chore(deps): upgrade workspace dependencies and fix locked CVEs
chore(deps): upgrade workspace dependencies and fix locked CVEs
chore(deps): hold Electron on the 42 line
chore(deps): patch Electron to 42.11.12 and postcss to 8.5.29
chore(deps): bump the postcss override to 8.5.29
chore(deps): bump the postcss override to 8.5.29 (#5674)