freedomofpress/dangerzone

Take potentially dangerous PDFs, office documents, or images and convert them to safe PDFs

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 15 minutes ago
Added to GitGenius on September 11th, 2026
Created on January 6th, 2020
Open Issues & Pull Requests: 204 (+0)
GitHub issues: Enabled
Number of forks: 271
Total Stargazers: 5,745 (+0)
Total Subscribers: 49 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.8 days
Mean response time: 86.4 days
90th percentile: 231.0 days
Tracked items: 372

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 68% of open issues come from outside the core team, a mix of external reports and the maintainers' own roadmap. Work labelled "bug" is answered fastest, typically in about 5 hours, while "development" waits about 5 months. 54% of tracked open issues have had no activity in three months. Only 4% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 138
New in 7 days: 0
Closed in 7 days: 2
Avg open age: 710 days
Stale 30+ days: 126
Stale 90+ days: 112

Recent activity

Opened in 7 days: 0
Closed in 7 days: 2
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (75)
  • enhancement (66)
  • user-request (51)
  • needs-triage (39)
  • icu (33)
  • P:linux (30)
  • container (26)
  • needs info (24)

Detailed Description

Dangerzone is a document sanitization tool that converts potentially malicious PDFs, office documents, and images into safe PDFs by stripping out embedded code and macros.

The tool addresses the risk of opening untrusted documents by using a sandbox-based approach. It converts input documents to PDF format if needed, then renders each page to raw pixel data within an isolated container. This pixel data is then reassembled into a new PDF outside the sandbox, eliminating any executable content while preserving the visual appearance of the document. The sandboxes use gVisor, an application kernel that implements Linux system calls without network access, preventing any compromised sandbox from communicating with external systems.

Dangerzone suits users who regularly receive documents from untrusted sources, such as journalists, security researchers, or anyone handling sensitive email attachments. It supports a wide range of input formats including Microsoft Office files, OpenDocument formats, EPUB, and common image formats. The tool runs on macOS, Windows, Linux distributions including Ubuntu, Debian, and Fedora, as well as specialized systems like Qubes OS and Tails. Optional OCR functionality restores text searchability in the output PDF, and file compression reduces the size of converted documents. The tool was inspired by Qubes trusted PDF but extends that concept to non-Qubes operating systems by using Podman containers instead of virtual machines.

The project receives issue reports from both core maintainers and external users, indicating real-world adoption without creating an unsustainable support burden. Maintainers typically respond to new issues and pull requests within a few days. Work in the issue tracker centers on bug fixes, feature enhancements, and user requests.