repomix: attach_packed_output can bypass file-read secret scanning for supported local files
CVE-2026-49988 · GHSA-hwpp-h97w-2h3j · published 2026-07-01
- Severity
- Medium
- CVSS score
- 6.9
- Chance of exploitation (EPSS)
- 0.20%
- Fixed in
- 1.14.1
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
In the MCP threat model, an assistant/tool caller can read local JSON/text/Markdown/XML files through a path that bypasses the file-read tool's secret scanning. Examples include project configuration JSON, exported tokens, local tool settings, or other plaintext files with supported extensions. This does not require shell execution or writing files. It requires MCP tool-call capability against a Repomix server running with local filesystem access.
Upgrade repomix to 1.14.1 or later.
Apply the same safety boundary to all local-file read paths: Require attach_packed_output to validate that the target file is a genuine Repomix output before registration. Reject malformed/non-Repomix JSON/XML/Markdown/plain files instead of registering them with empty metrics. Run the same secret check used by file_system_read_file before registering or returning content. Consider storing a content snapshot in the registry rather than registering arbitrary local paths for later reads.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| repomix | npm | <= 1.14.0 | 1.14.1 |
- CriticalPhoenix: Format String Injection in applyChatTemplatearize-phoenix
- CriticalFlowise: Unauthenticated OAuth2 token refresh endpoint returns access tokens — enables token theft for any connected serviceflowise
- CriticalCrawl4AI: authentication bypass vulnerability due to a hardcoded default JWT signing key in the Docker API servercrawl4ai
- CriticalMLflow: Environment variable injection in AI Gateway secrets enables server-side credential exfiltrationmlflow
- CriticalvLLM has RCE In Video Processingvllm
- HighConfig revision hashes could expose password verifiersopenclaw
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.