Incorrect Authorization vulnerability in ash-project ash_typescript allows an unauthorized RPC caller to read attribute values that Ash field policies...
Description
Incorrect Authorization vulnerability in ash-project ash_typescript allows an unauthorized RPC caller to read attribute values that Ash field policies denied. When a field policy denies an attribute, Ash substitutes %Ash.ForbiddenField{}, which retains the real value in original_value because embedded resources must remain writable, and hides it from Inspect rather than removing it. AshTypescript.Rpc.ResultProcessor strips these markers to nil on its template-driven paths, but normalize_primitive/1 in lib/ash_typescript/rpc/result_processor.ex had no such clause, so a marker fell through to the generic struct branch which calls Map.from_struct/1 and serializes every key, original_value included. The denied value is returned to the caller inside the marker that represents its own denial. The simplest trigger is an action returning an embedded resource as a map, which routes through normalize_resource_struct/2 with an empty template. normalize_value_for_json/1 is a public, unguarded entry point to the same path. This issue affects ash_typescript: from 0.11.0 before 0.18.0.
AI Analyst Comment
Remediation
Apply vendor security updates immediately. Monitor for exploitation attempts and review access logs.
Description Summary:
An incorrect authorization flaw in ash_typescript allows unauthorized RPC callers to access sensitive attribute values that should have been restricted by Ash field policies.
Executive Summary:
An authorization bypass vulnerability in the ash_typescript library allows unauthorized users to access restricted data, posing a high risk to sensitive application information.
Vulnerability Details
CVE-ID: CVE-2026-82730
Affected Software: ash-project ash_typescript
Affected Versions: 0.11.0 up to 0.18.0
Vulnerability: The vulnerability exists in the result processing logic of the ash_typescript library, specifically within the normalize_primitive function. Due to improper handling of forbidden field markers, serialized data can leak restricted attribute values to unauthorized callers.
Business Impact
This vulnerability allows an unauthorized attacker to extract sensitive information that the application was intended to protect via field policies. Given the CVSS score of 8.2, this represents a high-severity risk that could lead to significant data exposure, privacy violations, and non-compliance with data protection regulations.
Remediation Plan
Immediate Action: Update the ash_typescript library to version 0.18.0 or later to ensure the proper sanitization of forbidden field markers.
Proactive Monitoring: Review application logs for unusual RPC request patterns or unexpected data retrieval attempts from embedded resources that may indicate attempted exploitation of this flaw.
Compensating Controls: If an immediate update is not feasible, restrict access to public-facing RPC endpoints that utilize the vulnerable normalize_value_for_json function until the patch can be applied.
Exploitation Status
Public Exploit Available: Unknown
Analyst Notes: As of September 1, 2026, there is no public information indicating active exploitation or a public proof-of-concept for this vulnerability. The flaw is primarily an implementation error in the serialization logic which, while serious, requires specific configurations to trigger.
Analyst Recommendation
The vulnerability presents a clear risk to data confidentiality by circumventing established field-level security policies. Administrators should prioritize updating the ash_typescript dependency to the remediated version, as the flaw is straightforward to trigger via public entry points. Failure to patch may result in the unauthorized disclosure of restricted resource attributes.