← Back to scan
File as GitHub Issue repo: marktext/marktext

Push this scan report to marktext/marktext

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

XML External Entity (XXE) — Node.js xml parsers

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED123 [MINED123] Trojan Source bidi character (LRM) in source: Line 256 contains a Unicode bidi… packages/muya/src/config/escapeCharacte…:256
CRIT MINED116 [MINED116] Workflow uses `secrets.CLOUDFLARE_ACCOUNT_ID` on a `pull_request` trigger: Thi… .github/workflows/website-deploy.yml:30
CRIT MINED116 [MINED116] Workflow uses `secrets.CLOUDFLARE_API_TOKEN` on a `pull_request` trigger: This… .github/workflows/website-deploy.yml:29
HIGH SEC027 [SEC027] XML External Entity (XXE) — Node.js xml parsers: Node.js XML parsers can expand … packages/muya/src/state/htmlToMarkdown.…:7
HIGH SEC027 [SEC027] XML External Entity (XXE) — Node.js xml parsers: Node.js XML parsers can expand … packages/muya/src/inlineRenderer/utils.…:100
HIGH SEC027 [SEC027] XML External Entity (XXE) — Node.js xml parsers: Node.js XML parsers can expand … packages/muya/src/block/commonMark/html…:54
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/muya/src/block/extra/math/math…:73
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/muya/src/block/extra/diagram/d…:133
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/desktop/src/renderer/src/util/…:256
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). packages/desktop/src/renderer/src/util/…:5
HIGH SEC006 [SEC006] XSS Risk: Direct HTML injection without sanitization. packages/muya/src/block/content/langInp…:31
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/desktop/src/main/preferences/i…:111
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/desktop/src/main/menu/template…:109
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/desktop/src/main/ipc/window.ts:105
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/muya/src/inlineRenderer/index.…:79
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/desktop/src/renderer/src/codeM…:25
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/desktop/src/main/ipc/uploader.…:94
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/muya/src/block/content/langInp…:15
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/desktop/src/renderer/src/comma…:132
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/desktop/src/main/ipc/shell.ts:60
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/desktop/src/main/windows/base.…:128
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/desktop/src/main/utils/createG…:16
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/desktop/src/main/exceptionHand…:81
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4`: `uses: actions/u… .github/workflows/build.yml:83
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/build.yml:45
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/muya-build.yml:22
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/e2e.yml:19
HIGH MINED115 [MINED115] Action `softprops/action-gh-release` pinned to mutable ref `@v2.6.2`: `uses: s… .github/workflows/release.yml:207
HIGH MINED115 [MINED115] Action `actions/download-artifact` pinned to mutable ref `@v4.3.0`: `uses: act… .github/workflows/release.yml:168
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v4.6.2`: `uses: actio… .github/workflows/release.yml:135
HIGH MINED115 [MINED115] Action `actions/cache` pinned to mutable ref `@v4.3.0`: `uses: actions/cache@v… .github/workflows/release.yml:86
HIGH MINED115 [MINED115] Action `actions/setup-python` pinned to mutable ref `@v5.6.0`: `uses: actions/… .github/workflows/release.yml:75
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4.3.1`: `uses: actions/chec… .github/workflows/release.yml:63
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/muya-test.yml:23
HIGH MINED115 [MINED115] Action `anthropics/claude-code-action` pinned to mutable ref `@v1`: `uses: ant… .github/workflows/claude.yml:41
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/claude.yml:35
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/muya-spec.yml:27
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/validate-licenses.yml:24
HIGH MINED115 [MINED115] Action `marocchino/sticky-pull-request-comment` pinned to mutable ref `@v2`: `… .github/workflows/website-deploy.yml:148
HIGH MINED115 [MINED115] Action `marocchino/sticky-pull-request-comment` pinned to mutable ref `@v2`: `… .github/workflows/website-deploy.yml:138
HIGH MINED115 [MINED115] Action `marocchino/sticky-pull-request-comment` pinned to mutable ref `@v2`: `… .github/workflows/website-deploy.yml:128
HIGH MINED115 [MINED115] Action `actions/setup-node` pinned to mutable ref `@v4`: `uses: actions/setup-… .github/workflows/website-deploy.yml:35
HIGH MINED115 [MINED115] Action `pnpm/action-setup` pinned to mutable ref `@v4`: `uses: pnpm/action-set… .github/workflows/website-deploy.yml:33
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/website-deploy.yml:32
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/muya-circular.yml:21
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/muya-lint.yml:21
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/lint.yml:19
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/test.yml:19
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… packages/muya/examples/src/main.ts:70
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… packages/muya/examples/src/main.ts:227
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… packages/muya/examples/src/data.ts:83
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… packages/muya/docs/jsonState.ts:131
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/muya/src/inlineRenderer/index.…:79
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/desktop/src/renderer/src/codeM…:25
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/desktop/src/main/ipc/uploader.…:94
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
LOW AIC003 Duplicated implementation block across source files packages/muyajs/lib/config/index.js:348
LOW AIC003 Duplicated implementation block across source files packages/muyajs/lib/config/index.js:13
LOW AIC003 Duplicated implementation block across source files packages/muya/src/ui/tableColumnToolbar…:103
LOW AIC003 Duplicated implementation block across source files packages/muya/src/ui/tableColumnToolbar…:77
LOW AIC003 Duplicated implementation block across source files packages/muya/src/ui/previewToolBar/ind…:65
LOW AIC003 Duplicated implementation block across source files packages/muya/src/ui/linkTools/index.ts:91
LOW AIC003 Duplicated implementation block across source files packages/muya/src/inlineRenderer/render…:16
LOW AIC003 Duplicated implementation block across source files packages/muya/src/inlineRenderer/render…:13
LOW AIC003 Duplicated implementation block across source files packages/muya/src/inlineRenderer/render…:23
LOW AIC003 Duplicated implementation block across source files packages/muya/src/inlineRenderer/render…:16
LOW AIC003 Duplicated implementation block across source files packages/muya/src/block/extra/frontmatt…:26
LOW AIC003 Duplicated implementation block across source files packages/muya/src/block/content/setextH…:39
LOW AIC003 Duplicated implementation block across source files packages/muya/src/block/content/paragra…:578
LOW AIC003 Duplicated implementation block across source files packages/desktop/src/renderer/src/prefC…:153
LOW AIC003 Duplicated implementation block across source files packages/desktop/src/renderer/src/prefC…:3
LOW AIC003 Duplicated implementation block across source files packages/desktop/src/renderer/src/prefC…:4
LOW AIC003 Duplicated implementation block across source files packages/desktop/src/renderer/src/prefC…:57
LOW AIC003 Duplicated implementation block across source files packages/desktop/src/main/keyboard/keyb…:13
INFO MINED058 [MINED058] React Dangerously Set Html: dangerouslySetInnerHTML bypasses Reacts JSX escapi… packages/website/src/components/docs/Co…:214
INFO MINED058 [MINED058] React Dangerously Set Html: dangerouslySetInnerHTML bypasses Reacts JSX escapi… packages/website/src/app/layout.tsx:95
INFO MINED058 [MINED058] React Dangerously Set Html: dangerouslySetInnerHTML bypasses Reacts JSX escapi… packages/website/src/app/docs/[...slug]…:71
INFO MINED047 [MINED047] Emoji In Source: Emoji ✅ ❌ 🚀 in code/comments — common AI output unless explic… packages/muya/src/locales/fr.ts:32
INFO MINED047 [MINED047] Emoji In Source: Emoji ✅ ❌ 🚀 in code/comments — common AI output unless explic… packages/muya/src/config/escapeCharacte…:25
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/muya/src/inlineRenderer/render…:17
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/muya/examples/src/data.ts:24
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/desktop/src/renderer/src/store…:27
INFO MINED053 [MINED053] Placeholder Default Username: [email protected] / [email protected] / admin/admin… packages/desktop/src/main/menu/actions/…:114
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/desktop/src/main/utils/index.ts:20
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/desktop/src/main/preferences/i…:72
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/desktop/src/main/editorBufferS…:105
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/desktop/src/main/filesystem/in…:37
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/desktop/src/main/editorBufferS…:205
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/desktop/src/main/dataCenter/in…:46
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. packages/desktop/src/main/editorBufferS…:23
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. packages/desktop/src/main/dataCenter/in…:139
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. packages/desktop/src/main/app/accessor.…:16
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … packages/desktop/src/main/editorBufferS…:83
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … packages/desktop/src/main/commands/inde…:55
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … packages/desktop/src/common/i18n.ts:46
Reset to top 5 95 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `marktext/marktext`

**Score: 74/100 (A-)**  ·  95 findings  ·  scanned 2026-06-05 09:59 UTC  ·  118,675 LOC

| Severity | Count |
|---|---|
| CRITICAL | 3 |
| HIGH | 45 |
| MEDIUM | 8 |
| LOW | 18 |

📊 [Full filterable report](https://repobility.com/scan/4c1de7b2-365c-44c3-80e5-6a709205365d/)  ·  ![scorecard](https://repobility.com/scan/4c1de7b2-365c-44c3-80e5-6a709205365d/report.png?v=1780653583-s2)

### Top findings

1. **CRITICAL** `MINED123` — Trojan Source bidi character (LRM) in source: Line 256 contains a Unicode bidirectional ov
   `packages/muya/src/config/escapeCharacter.ts:256` · ✓ Repobility
2. **CRITICAL** `MINED116` — Workflow uses `secrets.CLOUDFLARE_ACCOUNT_ID` on a `pull_request` trigger
   `.github/workflows/website-deploy.yml:30` · ✓ Repobility
3. **CRITICAL** `MINED116` — Workflow uses `secrets.CLOUDFLARE_API_TOKEN` on a `pull_request` trigger
   `.github/workflows/website-deploy.yml:29` · ✓ Repobility
4. **HIGH** `SEC027` — XML External Entity (XXE) — Node.js xml parsers
   `packages/muya/src/state/htmlToMarkdown.ts:7` · A05:2021 Security Misconfiguration (XXE)
5. **HIGH** `SEC027` — XML External Entity (XXE) — Node.js xml parsers
   `packages/muya/src/inlineRenderer/utils.ts:100` · A05:2021 Security Misconfiguration (XXE)

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/4c1de7b2-365c-44c3-80e5-6a709205365d/_
Megaproject â high spam risk
Could not determine 'marktext/marktext' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.
Already filed
34/111 findings (31%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.