# CVE-2021-24821: Cost Calculator < 1.6 - Contributor+ Stored Cross-Site Scripting

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/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): 0.60%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-07T08:16:02.000Z
- Modified: 2026-06-17T03:40:57.920Z
- Weaknesses: CWE-79
- Assigned by: WPScan

## Description

The Cost Calculator WordPress plugin before 1.6 allows users with a role as low as Contributor to perform Stored Cross-Site Scripting attacks via the Description fields of a Cost Calculator > Price Settings (which gets injected on the edit page as well as any page that embeds the calculator using the shortcode), as well as the Text Preview field of a Project (injected on the edit project page)

(As written by CVE List.)

## Affected

- Unknown Cost Calculator: from 1.6 before 1.6
- nicdark cost_calculator: before 1.6

## Every score

- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://wpscan.com/vulnerability/f0915b66-0b99-4aeb-9fba-759cafaeb0cb> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24821](https://www.cve.org/CVERecord?id=CVE-2021-24821), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24821](https://nvd.nist.gov/vuln/detail/CVE-2021-24821), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24821 · Whole record: https://cve.day/CVE-2021-24821.json · Rebuilt by cve.day 2026-11-25T22:58:07.128Z
