/

CVE-2026-127084

Severity:

HIGH RISK

(7.3)

Stored XSS (CWE-79) in Teable Attachment API Route

CVE-2026-127084

Received

Vulnerability type

Category:

Stored Cross-Site Scripting

CWE:

CWE-79

Impact:

Session-context script execution and unauthorized API actions

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

Teable has a stored cross-site scripting vulnerability in attachment handling: an authenticated user can upload SVG or HTML content with an attacker-chosen content type. When a victim opens the same-origin attachment read URL, the content may execute script in the victim's browser, potentially allowing actions through the victim's session.

Affected context

The issue affects Teable builds before 2026-10-12T12-45-53Z.3331 where authenticated users can upload SVG or HTML attachments with a chosen content type. Risk arises when the attachment read endpoint serves the content inline from the application's origin without an effective Content Security Policy.

Exploit preconditions

  • Attack surface: Attachment upload and same-origin attachment read endpoint
  • Required access: An authenticated account able to upload attachments
  • Trigger point: A victim opens an attachment read URL supplied by the attacker
  • Why exploitation is possible: The uploaded active content is served inline with an attacker-chosen content type and an empty Content-Security-Policy, allowing script to run in the application's origin

Why this happens

The vulnerability is a stored cross-site scripting flaw mapped to CWE-79: Improper Neutralization of Input During Web Page Generation. Uploaded active content is served in a browser-executable context without sufficient content restrictions, allowing attacker-controlled markup or script to be interpreted as trusted application-origin content.

Potential impact

  • Script may run in a victim's authenticated browser session
  • An attacker could perform API actions available to the victim
  • Sensitive information accessible through the application may be exposed
  • The application's data or user workflows could be altered

General mitigation guidance

Common defensive patterns include:

  • Treat uploaded files as untrusted and avoid serving active formats inline
  • Serve attachments from a separate origin that does not share application credentials
  • Use safe content-type handling and force downloads where inline rendering is unnecessary
  • Apply a restrictive Content Security Policy and other browser security headers
  • Validate allowed file types based on content as well as declared metadata
  • Limit account privileges and restrict who can upload attachments

How teams detect issues like this

High-level review and monitoring approaches include:

  • Review attachment upload and read paths for reliance on user-supplied content types
  • Use static analysis and code review to identify inline rendering of untrusted HTML or SVG
  • Check that attachment responses have appropriate content-disposition and security headers
  • Enforce policies that restrict active file types or require isolated-origin serving
  • Monitor for suspicious attachment uploads and access patterns

Sources

SourceLink
github.comgithub.com/teableio/teable/blob/5ef2238883cad7c3980084de9a9031135fb9734f/apps/nestjs-backend/src/features/attachments/attachments.controller.ts#L52-L71
github.comgithub.com/teableio/teable/commit/3c1c4646bfddfb14b1f2fbab8d0e1189969fa304
github.comgithub.com/teableio/teable/releases/tag/release.2026-10-12T12-45-53Z.3331
github.comgithub.com/teableio/teable/security/advisories/GHSA-2fm5-fcfx-hq5f
vulncheck.comvulncheck.com/advisories/teable-before-2026-10-12t12-45-53z-3331-stored-xss-via-attachment-uploads

Frequently asked

questions

A victim must open the attachment read URL, but an authenticated user who can upload a crafted attachment may be able to share that URL.

The described attack requires an authenticated account with permission to upload attachments. The victim's browser must then load the uploaded content.

Avoid serving untrusted active content inline from the application origin. Use safe content handling and, where rendering is needed, isolate it from application credentials.

Restrict accepted file types, distrust client-supplied metadata, apply browser security headers, and review upload and serving flows for same-origin execution risks.

Find out what's already
exploitable in your codebase.