/

CVE-2026-49436

Severity:

HIGH RISK

(7.3)

Stored XSS (CWE-79) in LinkAce Bulk Link API Endpoint

CVE-2026-49436

Deferred

Vulnerability type

Category:

Stored Cross-Site Scripting

CWE:

CWE-79

Impact:

Arbitrary JavaScript execution in a victim's browser, with possible session and cookie exposure

Severity:

HIGH RISK

(7.3)

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

LinkAce contains a stored cross-site scripting vulnerability in its Bulk Link API because URL values are accepted without format validation and later rendered directly as link targets. An authenticated user may store a javascript: URI that executes arbitrary JavaScript when another user clicks the link, potentially exposing session data.

Affected context

The vulnerability occurs in LinkAce deployments where authenticated users can submit links through the Bulk Link API and those values are later displayed in Blade-rendered pages. Risk is present when URL schemes are not restricted before storage and link targets are emitted without controls that prevent executable URI schemes.

Exploit preconditions

  • Attack surface: The authenticated Bulk Link API endpoint at POST /api/v2/bulk/links
  • Required access: A valid authenticated account with permission to create or bulk-submit links
  • Trigger point: A victim views and clicks a stored link rendered by the application
  • Why exploitation is possible: The application accepts a dangerous URI scheme and later places the stored value directly into an href, allowing browser-side script execution

Why this happens

The underlying bug is insufficient validation of user-controlled URL schemes combined with unsafe output handling. Treating any submitted string as a valid URL permits javascript: values to survive storage and reach an HTML link context. This maps to CWE-79: Improper Neutralization of Input During Web Page Generation, because attacker-controlled data is rendered in a way that the browser interprets as executable content.

Potential impact

  • Arbitrary JavaScript may execute in a victim's browser
  • Session tokens or accessible cookies could be exfiltrated
  • Attackers could perform actions as the victim within LinkAce
  • Sensitive page content could be read or modified
  • Additional users may be targeted through persistent stored content

General mitigation guidance

Mitigation generally focuses on treating submitted URLs as untrusted data and enforcing safe output behavior.

Common defensive patterns include:

  • Allowlisting safe URL schemes such as HTTPS, HTTP where appropriate, and other explicitly approved schemes
  • Rejecting or neutralizing executable schemes before storage and again before rendering
  • Applying context-appropriate output encoding for HTML attributes
  • Using framework and template defaults that escape untrusted values
  • Avoiding direct insertion of user-controlled values into executable or navigation-sensitive contexts
  • Limiting account privileges and bulk-link submission permissions
  • Applying security headers and cookie protections as defense-in-depth

How teams detect issues like this

Organizations can look for this vulnerability through:

  • Static analysis rules that identify unvalidated user input flowing into href attributes
  • Code review checks for URL parsing without scheme allowlisting
  • Tests covering dangerous schemes, encoded variants, and mixed-case input
  • Monitoring stored-link data for unexpected non-HTTP(S) schemes
  • Content Security Policy reporting for unexpected script execution
  • CI policies that require contextual output encoding and safe URL validation

Automated security review tools may help identify input-to-HTML data flows, but findings should be confirmed against the application's rendering behavior.

Sources

SourceLink
github.comgithub.com/Kovah/LinkAce/commit/642ac520347205a8277668bcae269bdc21223eae
github.comgithub.com/Kovah/LinkAce/security/advisories/GHSA-6r73-pchm-4m39

Frequently asked

questions

It can be exploited through the application interface by an authenticated user who can submit a crafted link. A victim generally must later view and activate the stored link for the browser-side code to run.

It requires an account with permission to use the Bulk Link API or otherwise create links. The attacker does not necessarily need administrative privileges.

Validate URLs against a strict scheme allowlist, reject executable schemes, and apply contextual HTML attribute escaping when rendering stored values.

Treat all submitted URLs as untrusted, test dangerous and encoded schemes, use secure template defaults, and enforce code-review and CI policies for input-to-HTML data flows.

Find out what's already
exploitable in your codebase.