/

CVE-2026-130158

Severity:

CRITICAL RISK

(9.0)

Stored Cross-Site Scripting (CWE-79) in RepoManager

CVE-2026-130158

Received

Vulnerability type

Category:

Stored Cross-Site Scripting

CWE:

CWE-79

Impact:

Administrative browser-session compromise through stored cross-site scripting

Severity:

CRITICAL RISK

(9.0)

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

RepoManager stores package metadata submitted through inventory and available-update reporting, then renders those values on a host's package detail page without preventing HTML or JavaScript execution. If an administrator later views a page containing crafted metadata, script may run in the administrator's authenticated browser session.

Affected context

The issue affects RepoManager's host package detail page when it renders stored package metadata without safely handling HTML or JavaScript. Registered hosts, or parties with a host or API credential, can submit package names and versions through inventory reporting; available-update reporting also accepts a repository value. An administrator must later view the affected page for the stored content to execute.

Exploit preconditions

  • Attack surface: Host package metadata reporting and the host's package detail page
  • Required access: A registered host or a party with its host or API credential
  • Trigger point: An administrator views a package detail page containing submitted metadata
  • Why exploitation is possible: Submitted values are stored and rendered without preventing script execution

Why this happens

The application renders stored package metadata as active content rather than treating it as untrusted data. This is a stored cross-site scripting flaw mapped to CWE-79: Improper Neutralization of Input During Web Page Generation. The underlying insecure pattern is allowing attacker-controlled values to reach a browser-rendered page without appropriate context-sensitive output handling.

Potential impact

  • Script may run in an administrator's authenticated browser session
  • Administrative data could be exposed
  • Requests could be forged using the administrator's session
  • Admin-only functionality could potentially be abused for further escalation

General mitigation guidance

Mitigation generally focuses on ensuring untrusted metadata is inert when displayed.

Common defensive patterns include:

  • Apply context-sensitive output encoding wherever metadata is rendered
  • Avoid inserting untrusted values into HTML or script contexts; use safe text-rendering APIs
  • If rich HTML is genuinely required, apply a restrictive, well-maintained sanitization policy
  • Use a Content Security Policy as defense in depth, not as a replacement for safe rendering
  • Limit host and API credential exposure and scope administrative privileges to the minimum needed

How teams detect issues like this

High-level detection approaches include:

  • Review package detail page templates for unsafe HTML insertion or missing context-sensitive output encoding
  • Trace package metadata from reporting endpoints through storage to browser rendering
  • Use static analysis rules to flag unsafe rendering APIs and untrusted data in HTML or script contexts
  • Enforce code-review and CI policies requiring safe rendering patterns for stored user-controlled values

Sources

SourceLink
github.comgithub.com/lbr38/repomanager/commit/d380579c84accf1786934deee245650bbc68a562
github.comgithub.com/lbr38/repomanager/pull/403
github.comgithub.com/lbr38/repomanager/releases/tag/5.13.3
github.comgithub.com/lbr38/repomanager/security/advisories/GHSA-4766-qc2v-p59h

Frequently asked

questions

A registered host or a party with that host's credential or an API credential can submit package metadata.

No. The stored content is rendered on a host's package detail page, and an administrator must later view that page for script execution.

Treat submitted metadata as untrusted and use context-sensitive output encoding when rendering it. Avoid unsafe HTML insertion.

Trace untrusted data through storage and rendering, use safe templating and rendering APIs, and include static analysis and code-review checks for unsafe output patterns.

Find out what's already
exploitable in your codebase.