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

Push this scan report to typst/typst

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

Async function without await — fire-and-forget Promise (AI mistake)

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 SEC084 [SEC084] JS: require() with non-literal: require(<variable>) loads arbitrary modules — eq… crates/typst-library/src/foundations/co…:39
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… crates/typst-svg/src/shape.rs:141
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… crates/typst-pdf/src/link.rs:37
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… crates/typst-eval/src/markup.rs:181
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … crates/typst-cli/src/download.rs:49
HIGH MINED003 [MINED003] Rust Unwrap In Prod: .unwrap() panics if None/Err. Acceptable in tests; risky … crates/typst-cli/build.rs:15
HIGH MINED003 [MINED003] Rust Unwrap In Prod: .unwrap() panics if None/Err. Acceptable in tests; risky … crates/typst-bundle/src/lib.rs:186
HIGH MINED003 [MINED003] Rust Unwrap In Prod: .unwrap() panics if None/Err. Acceptable in tests; risky … crates/typst-bundle/src/introspect.rs:145
HIGH DKR014 Dockerfile copies the entire context without .dockerignore Dockerfile:7
HIGH MINED118 Dockerfile FROM `alpine:latest` not pinned by digest Dockerfile:26
HIGH RUSTSEC-2024-0320 yaml-rust: RUSTSEC-2024-0320 Cargo.lock
HIGH RUSTSEC-2026-0009 time: RUSTSEC-2026-0009 Cargo.lock
HIGH RUSTSEC-2024-0436 paste: RUSTSEC-2024-0436 Cargo.lock
HIGH RUSTSEC-2025-0141 bincode: RUSTSEC-2025-0141 Cargo.lock
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… crates/typst-cli/src/deps.rs:68
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … crates/typst-eval/src/binding.rs:12
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … crates/typst-cli/src/main.rs:75
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … crates/typst-cli/src/eval.rs:18
MED DKR003 Dockerfile base image uses the latest tag Dockerfile:27
MED DKR007 Docker build context has no .dockerignore .dockerignore
MED DKR017 Dockerfile installs dependencies after copying the full source tree Dockerfile:9
MED DKR002 Dockerfile base image has no explicit tag Dockerfile:1
MED DEPCUR-NPM npm package `shiki` is 1 major version(s) behind (^3.7.0 -> 4.2.0) tools/test-helper/package.json
MED GHSA-3pv8-6f4r-ffg2 tar: GHSA-3pv8-6f4r-ffg2 Cargo.lock
MED GHSA-phqj-4mhp-q6mq openssl: GHSA-phqj-4mhp-q6mq Cargo.lock
MED DKR001 Docker final stage has no non-root USER Dockerfile:27
LOW DEPCUR-NPM npm package `@types/vscode` is minor version(s) behind (^1.101.0 -> 1.120.0) tools/test-helper/package.json
LOW AIC003 Duplicated implementation block across source files tests/src/world.rs:37
LOW AIC003 Duplicated implementation block across source files tests/src/output.rs:225
LOW AIC003 Duplicated implementation block across source files tests/src/output.rs:208
LOW AIC003 Duplicated implementation block across source files crates/typst-svg/src/image.rs:118
LOW AIC003 Duplicated implementation block across source files crates/typst-pdf/src/lib.rs:198
LOW AIC003 Duplicated implementation block across source files crates/typst-library/src/text/mod.rs:263
LOW AIC003 Duplicated implementation block across source files crates/typst-library/src/model/table.rs:21
LOW AIC003 Duplicated implementation block across source files crates/typst-library/src/layout/ratio.rs:8
LOW AIC003 Duplicated implementation block across source files crates/typst-layout/src/introspect.rs:66
LOW AIC003 Duplicated implementation block across source files crates/typst-layout/src/introspect.rs:53
LOW AIC003 Duplicated implementation block across source files crates/typst-layout/src/inline/box.rs:27
LOW AIC003 Duplicated implementation block across source files crates/typst-html/src/introspect.rs:45
LOW AIC003 Duplicated implementation block across source files crates/typst-cli/src/query.rs:38
INFO MINED068 [MINED068] Rust Unsafe Block: unsafe { ... } block. Compiler safety guarantees disabled i… crates/typst-utils/src/fat.rs:20
INFO MINED068 [MINED068] Rust Unsafe Block: unsafe { ... } block. Compiler safety guarantees disabled i… crates/typst-library/src/text/font/mod.…:71
INFO MINED068 [MINED068] Rust Unsafe Block: unsafe { ... } block. Compiler safety guarantees disabled i… crates/typst-library/src/foundations/co…:33
INFO MINED066 [MINED066] Rust Panic Macro: panic!() unwinds the stack. Use Result for recoverable error… crates/typst-html/src/document.rs:237
INFO MINED066 [MINED066] Rust Panic Macro: panic!() unwinds the stack. Use Result for recoverable error… crates/typst-eval/src/lib.rs:51
INFO MINED066 [MINED066] Rust Panic Macro: panic!() unwinds the stack. Use Result for recoverable error… crates/typst-eval/src/import.rs:146
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… docs/src/main.rs:100
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… crates/typst-library/src/loading/mod.rs:95
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… crates/typst-cli/src/watch.rs:121
INFO MINED059 [MINED059] Rust Expect In Prod: .expect(...) panics same as unwrap with a custom message. crates/typst-eval/src/methods.rs:36
INFO MINED059 [MINED059] Rust Expect In Prod: .expect(...) panics same as unwrap with a custom message. crates/typst-eval/src/markup.rs:190
INFO MINED059 [MINED059] Rust Expect In Prod: .expect(...) panics same as unwrap with a custom message. crates/typst-cli/src/main.rs:59
Reset to top 5 52 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

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

**Score: 73/100 (C+)**  ·  52 findings  ·  scanned 2026-06-05 10:30 UTC  ·  156,322 LOC

| Severity | Count |
|---|---|
| CRITICAL | 1 |
| HIGH | 14 |
| MEDIUM | 11 |
| LOW | 14 |

📊 [Full filterable report](https://repobility.com/scan/a505d54a-f679-46d4-852f-a0873e69bc1d/)  ·  ![scorecard](https://repobility.com/scan/a505d54a-f679-46d4-852f-a0873e69bc1d/report.png?v=1780655452-s2)

### Top findings

1. **CRITICAL** `SEC084` — JS: require() with non-literal
   `crates/typst-library/src/foundations/context.rs:39`
2. **HIGH** `SEC029` — Server-Side Request Forgery (SSRF) — outbound HTTP from user input
   `crates/typst-svg/src/shape.rs:141` · A10:2021 SSRF
3. **HIGH** `SEC029` — Server-Side Request Forgery (SSRF) — outbound HTTP from user input
   `crates/typst-pdf/src/link.rs:37` · A10:2021 SSRF
4. **HIGH** `SEC029` — Server-Side Request Forgery (SSRF) — outbound HTTP from user input
   `crates/typst-eval/src/markup.rs:181` · A10:2021 SSRF
5. **HIGH** `SEC128` — Async function without await — fire-and-forget Promise (AI mistake)
   `crates/typst-cli/src/download.rs:49`

---

**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/a505d54a-f679-46d4-852f-a0873e69bc1d/_
Megaproject â high spam risk
Could not determine 'typst/typst' 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.

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.