Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-18320 Overview
CVE-2026-18320 is a cross-site scripting (XSS) vulnerability in the Readwise Reader application for Android [CWE-79]. The application uses a sanitize-html configuration that applies a wildcard attribute rule to SVG and PATH elements. This permissive rule allows all attributes, including script-capable event handlers such as onload and onerror, to survive sanitization. An attacker who supplies a crafted document containing malicious SVG markup can trigger script execution inside the Reader WebView when the content is rendered.
Critical Impact
Attacker-supplied SVG content can execute arbitrary JavaScript in the Reader WebView, exposing user session data and in-app content to a client-side XSS attacker.
Affected Products
- Readwise Reader for Android
Discovery Timeline
- 2026-09-25 - CVE-2026-18320 published to NVD
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-18320
Vulnerability Analysis
Readwise Reader for Android ingests third-party documents and renders them inside a WebView. Before rendering, the application sanitizes HTML using the sanitize-html library. The sanitizer configuration defines an allowlist of elements and attributes to retain. For SVG and PATH elements, the configuration uses a wildcard rule that preserves every attribute present on those tags.
SVG elements accept the same DOM event handler attributes as HTML elements. Attributes such as onload, onerror, and onclick on an <svg> or <path> node are executed by the WebView when the element is parsed or interacted with. The wildcard permits these handlers to pass through unmodified, defeating the purpose of sanitization.
The result is a stored or reflected XSS primitive, depending on how the malicious document reaches the user. Script executes in the context of the Reader WebView and can access in-app content, session tokens, or any JavaScript bridge exposed to the WebView.
Root Cause
The root cause is an overly permissive sanitize-html configuration. A wildcard attribute entry for SVG and PATH tags disables the library's attribute filtering for those elements. The sanitizer never strips script-capable event handler attributes, so active content survives into the DOM.
Attack Vector
An attacker crafts a document containing an <svg> or <path> element with an event handler attribute carrying a JavaScript payload. The victim imports or opens the document inside Readwise Reader for Android. User interaction is required to render the content. When the WebView parses the SVG, the event handler fires and executes attacker-controlled script.
The vulnerability mechanism is described in the CERT Vulnerability Advisory #699627. No public proof-of-concept exploit is listed, and the CVE is not present in the CISA Known Exploited Vulnerabilities catalog.
Detection Methods for CVE-2026-18320
Indicators of Compromise
- Imported documents containing <svg> or <path> tags with event handler attributes such as onload, onerror, onclick, or onmouseover.
- SVG markup containing javascript: URIs in href or xlink:href attributes.
- Documents sourced from untrusted web pages, email, or shared links that reference inline SVG rather than external image resources.
Detection Strategies
- Scan ingested document corpora for SVG elements carrying DOM event handler attributes before they reach client devices.
- Inspect WebView console logs on test devices for unexpected script execution originating from rendered article content.
- Review mobile application telemetry for outbound requests from the Reader process to domains not associated with Readwise infrastructure.
Monitoring Recommendations
- Monitor network egress from Android endpoints for anomalous requests tied to the Readwise Reader package.
- Alert on document imports from newly observed or low-reputation domains, especially those delivering HTML or SVG payloads.
- Track application version distribution across the mobile fleet to confirm patched builds are deployed.
How to Mitigate CVE-2026-18320
Immediate Actions Required
- Update Readwise Reader for Android to the latest version available from the Google Play Store once a fixed release is published.
- Advise users to avoid importing documents from untrusted sources until the patched version is confirmed installed.
- Review mobile device management (MDM) policies to enforce timely updates for the Readwise Reader package.
Patch Information
No vendor advisory URL is listed in the NVD record at the time of publication. Consult the CERT Vulnerability Advisory #699627 for coordinated disclosure details and refer to Readwise release notes for the fixed version. The fix should remove the wildcard attribute rule for SVG and PATH elements and replace it with an explicit allowlist that excludes event handler attributes and javascript: URIs.
Workarounds
- Restrict document imports to trusted sources until a patched application version is installed.
- Disable or avoid rendering content from unknown web clippings, email forwards, or shared feeds inside the Reader app.
- For enterprise deployments, consider blocking the Readwise Reader package on managed devices until the vendor publishes a fix.
# Configuration example
# Verify the installed Readwise Reader version on a managed Android device
adb shell dumpsys package io.readwise.reader | grep versionName
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

