CVE-2026-6634
vulnerability analysis and mitigation

Overview

CVE-2026-6634 is an improper authorization vulnerability in usememos/memos, an open-source note-taking application, affecting all versions up to and including 0.22.1. The flaw resides in the memos_access_token function within src/App.tsx, specifically in the UpdateInstanceSetting component, where manipulation of the additionalStyle and additionalScript arguments bypasses authorization controls. It was published on April 20, 2026, with the CVE assigned by VulDB. The vulnerability carries a CVSS v3.1 base score of 6.3 (Medium) and a CVSS v4.0 base score of 2.1 (Low) as assessed by the CNA (GitHub Advisory, VulDB). Notably, no patched version has been released as of the advisory date, and the vendor did not respond to disclosure attempts.

Technical details

The root cause is classified under CWE-266 (Incorrect Privilege Assignment) and CWE-285 (Improper Authorization), meaning the application fails to properly enforce access controls on the UpdateInstanceSetting functionality (GitHub Advisory). An authenticated attacker with low-level privileges can manipulate the additionalStyle and additionalScript parameters in the UpdateInstanceSetting component (src/App.tsx) to perform actions beyond their intended authorization scope — potentially injecting arbitrary CSS or JavaScript into the instance settings. The attack requires network access and a valid (low-privileged) account, but no user interaction or elevated privileges beyond that. A public security advisory was published by researcher Dave Gilmore (Dave Gilmore Advisory), and exploit code has been made publicly available.

Impact

Successful exploitation allows a low-privileged authenticated attacker to make unauthorized modifications to instance-level settings, including injecting arbitrary styles or scripts that could affect all users of the memos instance. This results in low-level impacts to confidentiality (potential exposure of user data or session tokens via injected scripts), integrity (unauthorized modification of instance configuration), and availability (potential disruption of the application's appearance or functionality) (GitHub Advisory, VulDB). The scope is limited to the vulnerable system itself, with no direct subsequent system impact identified.

Exploitability

A public proof-of-concept exploit has been made available, as noted in the CVE description and confirmed by the CVSS v4.0 exploit maturity rating of "Proof of Concept" (GitHub Advisory, VulDB). The EPSS score is approximately 0.034% (0.000340), placing it in the 3rd percentile for exploitation likelihood within 30 days. There is no current evidence of active in-the-wild exploitation, threat actor attribution, or inclusion in the CISA Known Exploited Vulnerabilities (KEV) catalog. The vendor did not respond to the researcher's disclosure, leaving no official patch available for versions ≤ 0.22.1.

Exploitation steps

  1. Reconnaissance: Identify publicly accessible usememos/memos instances running version 0.22.1 or earlier using search engines or tools like Shodan, looking for the memos web interface.
  2. Obtain low-privileged account: Register or obtain credentials for a low-privileged user account on the target memos instance (self-registration may be enabled by default).
  3. Authenticate: Log in to the memos instance and obtain a valid memos_access_token via the application's authentication flow.
  4. Craft malicious request: Send an authenticated API or UI request to the UpdateInstanceSetting endpoint, manipulating the additionalStyle or additionalScript parameters to inject arbitrary CSS or JavaScript content (e.g., a script that exfiltrates session cookies or modifies the UI for all users).
  5. Bypass authorization: Due to the improper authorization check in src/App.tsx, the server accepts and applies the malicious settings despite the attacker's low privilege level.
  6. Achieve objective: The injected script or style is rendered for all users visiting the memos instance, enabling session hijacking, credential harvesting, or persistent UI manipulation (GitHub Advisory, VulDB).

Indicators of compromise

  • Network: Authenticated API requests to the UpdateInstanceSetting endpoint from low-privileged user accounts, particularly those modifying additionalStyle or additionalScript fields; unexpected outbound connections from the memos server following instance setting changes.
  • Logs: Application logs showing low-privileged users successfully invoking instance-level setting update functions; repeated or unusual modifications to instance configuration settings.
  • File System / Application State: Presence of unexpected JavaScript or CSS payloads in the memos instance settings (e.g., <script> tags or obfuscated code in additionalScript/additionalStyle fields stored in the database).
  • User Reports: End users reporting unexpected UI behavior, redirects, or browser security warnings when accessing the memos instance, which may indicate injected scripts are executing (GitHub Advisory).

Mitigation and workarounds

No official patched version has been released by the usememos vendor as of the advisory date, and the vendor did not respond to disclosure (GitHub Advisory). Organizations should restrict access to the UpdateInstanceSetting functionality to trusted administrator accounts only, and review current instance settings for any unauthorized additionalStyle or additionalScript content. As a workaround, consider disabling public or self-service registration to limit the pool of potential attackers, and monitor application logs for unauthorized setting changes. Organizations should track the usememos repository for any future patch releases and upgrade immediately when a fixed version becomes available.

Community reactions

The vulnerability was reported by independent researcher Dave Gilmore, who published a security advisory after the vendor failed to respond to disclosure attempts (Dave Gilmore Advisory). The CVE was assigned and published via VulDB on April 20, 2026. No significant broader media coverage, vendor statements, or notable community commentary beyond the initial advisory and standard vulnerability database aggregation has been identified.

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management