Skip to main content

Kalmia CVE-2026-129548

| EUVDEUVD-2026-126286 MEDIUM
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-11-16 VulnCheck GHSA-fh6m-68mq-cr5g
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as read-only user
  2. Exploit
    Upload malicious HTML/SVG via upload-file endpoint
  3. Execution
    Share unauthenticated file link with administrator
  4. Impact
    Execute JavaScript in admin origin, steal JWT from localStorage

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK

2 techniques across 2 tactics: Command and Control, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) a valid read-only authenticated Kalmia account (PR:L) to reach the upload-file endpoint; (2) the upload-file handler accepting HTML/SVG without type restriction (the core defect in handlers/file.go); (3) the file get route serving uploaded content unauthenticated so it can be shared and rendered in-browser; and (4) an administrator opening the attacker-supplied link (UI:P/UI:R). Limiting factors that reduce real-world risk: the attacker must first obtain even low-privilege credentials, the payload only fires when a privileged admin interacts with the shared link, the impact is bounded to admin JWT theft in the Kalmia origin, and only Kalmia versions through 0.2.0 are affected.

Impact

This is a genuine but moderate-priority issue rather than an emergency. The CVSS 4.0 base score is 5.1 (medium), and the vector (AV:N/AC:L/AT:N/PR:L/UI:P) confirms it is network-reachable with low complexity but requires BOTH low-privilege authentication (PR:L - a read-only account) AND victim interaction (UI:P - an administrator must open the attacker-shared link). The vuln.today decision label is 'this_month', not act_now or emergency, which aligns with the medium severity. No EPSS score, no CISA KEV listing, and no confirmed working exploit code are present in the input, so there is no signal of active exploitation or mass automation; SSVC-style exploitation status is therefore best read as 'none/unreported'. The impact is scoped but real: successful exploitation yields administrator JWT theft from localStorage (an auth-bypass/privilege-escalation outcome), which is why confidentiality and integrity register as Low rather than None and a scope/subsequent-system change (SC:L/SI:L) is recorded. Net: a legitimate flaw worth patching on a normal cycle, not a drop-everything event - the dual requirement of a valid account plus admin click-through meaningfully limits real-world weaponization.

Exploit ScenarioDerived

An attacker who holds a low-privilege read-only Kalmia account uploads a malicious HTML or SVG file through the upload-file endpoint, which applies no file-type restriction. Because the file get route serves the content unauthenticated, the attacker sends the direct link to an administrator; when the admin opens it, the embedded JavaScript runs in the Kalmia admin origin and exfiltrates the administrator JWT from localStorage. No public working exploit code is identified in the input, though a VulnCheck advisory and a GitHub issue describe the mechanism in detail.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 16, 2026

Kalmia through 0.2.0 allows any read-only authenticated user to upload HTML or SVG files through the upload-file endpoint, which does not restrict content types, and then have that content rendered in a victim's browser through the unauthenticated file get route. An attacker holding even a low-privilege account can share a crafted link and, when an administrator opens it, execute JavaScript in the Kalmia origin and exfiltrate the administrator's JWT from localStorage. Exploitation requires a valid account plus administrator interaction, impact is bounded to the Kalmia origin (about 5.1 severity), no public exploit was identified at time of analysis, and the reported issue is tracked at https://github.com/DifuseHQ/Kalmia/issues/35.

RemediationAI

No vendor-released patch was identified at time of analysis, so confirm the state of https://github.com/DifuseHQ/Kalmia/issues/35 and the VulnCheck advisory before upgrading, and treat any build above 0.2.0 as unverified until a fix is published. Until then, apply compensating controls that directly target the two defects: at a reverse proxy or WAF in front of Kalmia, reject multipart uploads whose filename or content type is HTML or SVG (allow only the image or document types your users actually need, accepting that legitimate SVG uploads will break); force the file get route to return Content-Disposition: attachment together with X-Content-Type-Options: nosniff so uploaded markup downloads instead of rendering in the admin origin; and, where it can be done without breaking sharing workflows, require authentication on the file get route or place it behind the same session gate as the rest of the application. Reducing the impact of token theft requires moving administrator sessions out of localStorage into HttpOnly, SameSite cookies, and adding a Content-Security-Policy that disallows inline and third-party script on responses served from the file route. Finally, because the flaw is reachable by read-only accounts, audit and prune low-privilege Kalmia users so that self-registration or open invitations cannot be used to obtain the account the attack depends on.

Affected VersionsENISA

Kalmia 0 ≤0.2.0

Affected Packages

euvd kalmia no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Kalmia is a Go web application whose file-handling logic lives in handlers/file.go (lines 19-61 per the referenced commit). The root cause is CWE-434, unrestricted upload of a file with a dangerous type: the upload-file endpoint accepts arbitrary HTML and SVG rather than enforcing an allow-list of safe content types, and the accompanying file get route serves those uploads without authentication. Because uploaded content is returned from the same origin as the admin UI, an HTML or SVG document containing script executes in the application's security context - a stored cross-site scripting condition built on top of the unsafe upload. The CPE cpe:2.3:a:difusehq:kalmia:*:*:*:*:*:*:*:* confirms the affected package is DifuseHQ Kalmia itself, with all versions through 0.2.0 in scope; the extraction of administrator JWTs is possible only because session tokens are kept in browser localStorage and are therefore readable by any script running in that origin. The assessed vector (CVSS 3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) reflects a low-privilege authenticated attacker whose payload only fires after a privileged administrator is induced to open the shared file link.

Know when Kalmia gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 5.4 MEDIUM

Low-privilege account can upload (PR:L) but the admin must open the link (UI:R); stored XSS executing in the admin origin crosses security context (S:C), yielding JWT disclosure and limited integrity (C:L/I:L).

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

Kalmia through 0.2.0 contains a stored cross-site scripting vulnerability that allows read-only authenticated users to upload HTML or SVG files via the upload-file endpoint without type restrictions. Attackers can share links to files served unauthenticated through the file get route, executing JavaScript in the admin origin to steal administrator JWTs from localStorage.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Low
Kalmia is a niche open-source documentation platform with small deployment footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy