CVE-2026-71278
Received Received - Intake

Unauthenticated JavaScript Code Execution in rust-iot-platform

Vulnerability report for CVE-2026-71278, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-05

Last updated on: 2026-08-05

Assigner: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

Description

rust-iot-platform allows creating a "calc rule" via POST /calc-rule/create (api/src/controller/calc_rule_router.rs) containing an arbitrary `script` field. This route does not take the AuthToken request guard used elsewhere in the application, making it reachable without authentication. The stored script is subsequently executed via quick_js::Context::eval() in api/src/biz/calc_run_biz.rs with no sandboxing, allowing an unauthenticated attacker to achieve arbitrary JavaScript execution in the server process by creating and triggering a malicious calc rule.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-05
Last Modified
2026-08-05
Generated
2026-08-05
AI Q&A
2026-08-05
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
rust-iot-platform rust-iot-platform *
iot-ecology rust-iot-platform *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in rust-iot-platform allows unauthenticated attackers to create a calc rule with an arbitrary script field via an unprotected POST endpoint. The script is later executed without sandboxing, enabling arbitrary JavaScript code execution on the server.

Detection Guidance

Check for unauthorized POST requests to /calc-rule/create without authentication tokens. Inspect server logs for suspicious calc rule creations or executions. Look for unexpected JavaScript execution in server processes.

Impact Analysis

An attacker could exploit this to run malicious code on the server, potentially stealing data, installing malware, disrupting services, or gaining full control of the system. The high CVSS score indicates severe impact.

Compliance Impact

This vulnerability likely violates compliance requirements for data protection and security, such as GDPR's integrity principle or HIPAA's security rule, due to unauthorized code execution and potential data breaches.

Mitigation Strategies

Immediately restrict access to the /calc-rule/create endpoint to require valid AuthToken. Disable or remove the calc rule functionality if not needed. Update the application to enforce authentication and sandbox JavaScript execution.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-71278. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart