Skip to content

Dependency health: vulnerable locked versions and deprecated transitive packages #5610

Closed

Description

@qlz-q

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:

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.json declares electron to ~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 ProtocolResponse with a url but without a session, 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.yaml contains an overrides entry that pins postcss to 8.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 overrides entry in pnpm-workspace.yaml carried a short comment explaining why postcss is 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

Thanks.

Activity

  1. Jocs commented on Oct 9, 2026

    @Jocs
    Member

    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; sync readImage/writeImage/readBuffer and 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 latest is 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.

  2. added 7 commits that reference this issue on Oct 9, 2026
    d6fad60
    638309d
    8a53d83
    d2661a0
    110d257
    4ad64b4
    c064b90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions