# CVE-2019-13970: AntSword RCE and XSS via code injection

- Severity: Medium 6.1 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.87%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-07-19T05:45:06.000Z
- Modified: 2026-06-17T02:17:32.107Z
- Also known as: GHSA-hq75-ggc3-8h3q
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

In antSword before 2.1.0, self-XSS in the database configuration leads to code execution via modules/database/asp/index.js, modules/database/custom/index.js, modules/database/index.js, or modules/database/php/index.js.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- antsword (npm): before 2.1.0
- antsword_project antsword: before 2.1.0

## Every score

- GitHub: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/AntSwordProject/antSword/issues/151> (exploit, third-party-advisory, web)
- <https://github.com/AntSwordProject/antSword/commit/4b932e81447b4b0475f4fce45525547395c249d3> (patch, third-party-advisory, web)
- <https://github.com/AntSwordProject/antSword/compare/ed01dea...834063a> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-13970> (advisory)
- <https://github.com/AntSwordProject/antSword> (package)

## Sources

- CVE List: [CVE-2019-13970](https://www.cve.org/CVERecord?id=CVE-2019-13970), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-hq75-ggc3-8h3q](https://github.com/advisories/GHSA-hq75-ggc3-8h3q), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2019-13970](https://nvd.nist.gov/vuln/detail/CVE-2019-13970), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-13970 · Whole record: https://cve.day/CVE-2019-13970.json · Rebuilt by cve.day 2026-11-25T22:57:46.058Z
