# CVE-2021-33570: Postbird 0.8.4 allows stored XSS via the onerror attribute of an IMG element in any PostgreSQL database table.

- 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): 3.56%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2021-05-25T21:06:34.000Z
- Modified: 2026-06-17T03:54:48.483Z
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

Postbird 0.8.4 allows stored XSS via the onerror attribute of an IMG element in any PostgreSQL database table. This can result in reading local files via vectors involving XMLHttpRequest and open of a file:/// URL, or discovering PostgreSQL passwords via vectors involving Window.localStorage and savedConnections.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- postbird_project postbird: 0.8.4

## 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://github.com/Tridentsec-io/postbird> (exploit, third-party-advisory)
- <http://packetstormsecurity.com/files/162831/Postbird-0.8.4-Cross-Site-Scripting-Local-File-Inclusion.html> (exploit, third-party-advisory, vdb-entry)
- <http://packetstormsecurity.com/files/162872/Postbird-0.8.4-XSS-LFI-Insecure-Data-Storage.html> (exploit, third-party-advisory, vdb-entry)
- <https://www.exploit-db.com/exploits/49910> (exploit, third-party-advisory, vdb-entry)
- <https://github.com/Paxa/postbird/issues/132> (issue-tracking, third-party-advisory)
- <https://github.com/Paxa/postbird/issues/133> (issue-tracking, third-party-advisory)
- <https://github.com/Paxa/postbird/issues/134> (issue-tracking, third-party-advisory)
- <https://tridentsec.io/blogs/postbird-cve-2021-33570/> (broken-link, third-party-advisory, url-repurposed)

## Sources

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

---

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