<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Class-Pollution - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/class-pollution/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Wed, 05 Aug 2026 21:29:20 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/class-pollution/feed.xml" rel="self" type="application/rss+xml"/><item><title>Taipy Class Pollution Vulnerability Leading to RCE</title><link>https://feed.craftedsignal.io/briefs/2026-08-taipy-class-pollution/</link><pubDate>Wed, 05 Aug 2026 21:29:20 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-taipy-class-pollution/</guid><description>Taipy v4.0.3 contains a class pollution vulnerability (CVE-2025-30374) that allows unauthenticated attackers to manipulate server-side state via crafted WebSocket messages, resulting in RCE, credential leakage, XSS, and DoS.</description><content:encoded><![CDATA[<p>A severe class pollution vulnerability, identified as CVE-2025-30374, exists in Taipy v4.0.3. The vulnerability stems from an insecure recursive state update mechanism in <code>taipy/gui/utils/_attributes.py</code>, where client-provided input is used to dynamically update object attributes without validation. Attackers can leverage this to inject malicious attribute paths (analogous to prototype pollution), effectively overwriting internal application state, module attributes, or class methods at runtime.</p>
<p>The impact is significant, as attackers can achieve Remote Code Execution (RCE) by manipulating the <code>Gui.__SELF_VAR</code> attribute used within internal <code>eval()</code> calls. Furthermore, the vulnerability enables credential exfiltration, such as OpenAI API tokens, by redirecting outbound application traffic, as well as enabling Reflected XSS and Denial of Service (DoS) by crashing the application or injecting malicious content into rendered responses. This flaw represents a critical security risk for any Taipy deployment exposing application state management to client-side input.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker establishes a WebSocket connection to the targeted Taipy application.</li>
<li>Attacker crafts a malicious message payload containing an attribute path injection string (e.g., <code>_TpN_tpec_TpExPr...</code>).</li>
<li>The message is sent to the Taipy server, where it is processed by <code>_manage_message</code>.</li>
<li>The <code>_setscopeattr_drill</code> function is triggered, passing the attacker's input to the recursive <code>_attrsetter</code> function.</li>
<li>The <code>_attrsetter</code> function uses <code>setattr</code> and <code>getattr</code> to traverse and modify server-side object attributes based on the attacker's path.</li>
<li>Attacker targets specific internal attributes such as <code>Gui.__SELF_VAR</code> or method attributes on <code>_TaipyBase</code>.</li>
<li>Upon subsequent application logic execution, the modified attributes are accessed or evaluated (e.g., via <code>eval()</code>).</li>
<li>Final objective achieved: RCE, credential exfiltration, XSS injection, or application crash.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The vulnerability affects Taipy v4.0.3 users. Successful exploitation allows for complete server compromise through RCE, theft of sensitive configuration secrets like OpenAI tokens, disruption of services via DoS, and potential account takeover via XSS. Given the availability of public proof-of-concept exploits, the risk to unpatched infrastructure is high.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Prioritize the following actions to detect and mitigate CVE-2025-30374:</p>
<ul>
<li>Update Taipy to a patched version immediately upon vendor release.</li>
<li>Implement strict server-side validation for all input parameters received via WebSocket messages in <code>_manage_message</code>.</li>
<li>Block or inspect WebSocket traffic containing deeply nested attribute paths or sequences targeting internal application classes.</li>
<li>Audit infrastructure logs for unauthorized WebSocket messages containing <code>__class__</code>, <code>__base__</code>, or <code>__SELF_VAR</code> patterns.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">threat</category><category>cve-2025-30374</category><category>rce</category><category>class-pollution</category><category>taipy</category><category>python</category></item></channel></rss>