/

CVE-2026-86751

Severity:

HIGH RISK

(8.5)

External Resource Injection (CWE-73) in Snipe-IT Notes

CVE-2026-86751

Analyzed

Vulnerability type

Category:

External Resource Injection

CWE:

CWE-73

Impact:

Arbitrary File Read and Server-Side Request Forgery

Severity:

HIGH RISK

(8.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Snipe-IT improperly handles Markdown image syntax in checkout acceptance notes, allowing authenticated users to cause server-side resource retrieval.

Depending on deployment permissions and network access, this may expose local files such as environment configuration or enable server-side HTTP requests.

Affected context

The issue occurs in Snipe-IT note fields when user-supplied Markdown image syntax passes through HTML escaping, is interpreted by the CommonMark parser, and is later processed by the mail auto-embedding functionality. Deployments are at greater risk when authenticated users can submit checkout acceptance notes and the application process can read sensitive files or reach internal network resources.

Exploit preconditions

  • Attack surface: Checkout acceptance note fields and subsequent note rendering or email processing
  • Required access: An authenticated account permitted to submit or modify relevant notes
  • Trigger point: Markdown parsing and automatic image embedding through file or HTTP retrieval
  • Why exploitation is possible: User-controlled resource references are processed as fetchable server-side content instead of being limited to trusted, validated resources

Why this happens

The vulnerability results from insufficient sanitization and validation of Markdown image destinations across multiple processing stages. Although HTML escaping may transform some characters, the CommonMark parser can still recognize image syntax, after which the mail auto-embedding component may resolve the referenced resource through local file access or outbound HTTP requests. This maps to CWE-73: External Control of File Name or Path, because attacker-controlled input influences which local or remote resource the server attempts to access.

Potential impact

  • Sensitive local files could be read by the application process
  • Environment files containing secrets such as application keys could be exposed
  • The server could make requests to internal or otherwise restricted HTTP services
  • Cloud metadata or administrative endpoints could be targeted where network controls permit
  • Retrieved information could support account compromise or broader system intrusion

General mitigation guidance

Mitigation generally focuses on treating Markdown resource references as untrusted input and preventing server-side resolution of arbitrary destinations.

Common defensive patterns include:

  • Disable automatic fetching and embedding of remote or local image resources where not required
  • Allow only explicitly approved schemes, hosts, and resource locations
  • Reject or neutralize image destinations that reference local paths, special files, or internal network ranges
  • Apply context-aware sanitization after Markdown parsing and before rendering or mail processing
  • Restrict the application process from reading sensitive configuration files
  • Enforce outbound network policies that limit access to internal services and metadata endpoints
  • Use least-privilege service accounts and separate sensitive secrets from application-readable paths

How teams detect issues like this

Detection can combine static analysis, code review, and runtime monitoring.

  • Search for Markdown rendering followed by automatic URL, file, or image retrieval without an allowlist.
  • Review code paths that pass user-controlled note content to CommonMark, HTML conversion, mail embedding, file access, or HTTP client APIs.
  • Test sanitization using local-path references, internal addresses, alternate URL schemes, and encoded resource destinations.
  • Monitor application logs and egress traffic for unusual file-access errors or requests to loopback, link-local, private, or metadata addresses.
  • Enforce repository policies that flag untrusted input reaching file or network retrieval functions; automated review tools may assist with identifying these data flows.

Sources

SourceLink
github.comgithub.com/grokability/snipe-it/security/advisories/GHSA-f3vq-g24v-xc2g
vulncheck.comvulncheck.com/advisories/snipe-it-before-8.7.0-arbitrary-file-read-and-ssrf-via-markdown

Frequently asked

questions

Exploitation generally requires an authenticated user with permission to submit or modify the affected checkout acceptance notes.

No. The attacker may only need access to the Snipe-IT application, although the resulting file or network access occurs from the server side.

Treat Markdown image destinations as untrusted, disable arbitrary server-side fetching, and permit only validated resources from approved locations.

Apply context-aware sanitization at every rendering stage, restrict file and network privileges, enforce outbound network policies, and test user-controlled content against local and internal resource references.

Find out what's already
exploitable in your codebase.