Please report a vulnerability privately, through GitHub's private vulnerability reporting: open the repository's Security tab and choose Report a vulnerability. Do not open a public issue or a pull request for it.
Say what you found, how to reproduce it, and which version of Pattern Dump it affects. You will get an answer as soon as the maintainer can give one; a fix is released as a new version, and the report is made public with it.
Pattern Dump is at 0.x: it is complete enough to use, and breaking changes are still possible between minor versions. Only the latest release gets security fixes.
Pattern Dump runs code by design: your project's config, its Handlebars helpers and scripts, and the helpers and
scripts of the pattern packages you install. Running them is what you asked for, so anything that needs you to run
code you installed or wrote is out of scope. Templates and stylesheets are trusted like code too: a template can call
any helper and write unescaped output, and a stylesheet's @use or @import reads the file it names, inside the
project or not. So component previews (the component pages, the live examples in the docs, and the workbench) run the
design system's own templates, styles and scripts in iframes on the same origin, without a sandbox.
In scope is what untrusted content can make Pattern Dump do: the markdown, frontmatter, JSON data, images and file names of a project or a package, such as a page someone sends you or a package's content. These count:
- Content that makes
pd dev,pd build,pd auditor another command read or write a file outside the project. - Content that ends up as script in the workbench or in a built page.
pd dev, the workbench or the MCP server answering anyone beyond the loopback address, or serving a file from outside the project. The folders the config names are the project's here: its pattern packages and itssite.mounts.- The Chromium step that renders social images loading anything it shouldn't: another host, or a file outside the project.
A symbolic link is content too. Pattern Dump reads a link in the pages, patterns, styles or themes only when it
leads to a file inside the project, or inside the pattern package it is in, and a link in an asset folder only when
it leads inside that folder, as pd dev serves it. A link that leads anywhere else is left out and named. Pattern packages themselves are found through node_modules as Node finds them, so a file:
dependency or a package kept in the project as a submodule loads from wherever its folder is.