CVE-2021-33320 — com.liferay.flags.taglib
MEDIUMCVE-2021-33320 is a medium-severity (CVSS 4.3) CWE-770 vulnerability in com.liferay:com.liferay.flags.taglib. A fix is available for com.liferay:com.liferay.flags.taglib — see the affected versions and patch details below.
Liferay Portal and Liferay DXP vulnerable to email spam via lack of flagging rate
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
com.liferay:com.liferay.flags.taglib☕com.liferay.portal:release.dxp.bom☕com.liferay.portal:release.dxp.bom☕com.liferay.portal:release.dxp.bomReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
The Flags module before version 5.0.11 in Liferay Portal 7.3.1 and earlier, and Liferay DXP 7.0 before fix pack 96, 7.1 before fix pack 20, and 7.2 before fix pack 5, does not limit the rate at which content can be flagged as inappropriate, which allows remote authenticated users to spam the site administrator with emails
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | com.liferay:com.liferay.flags.taglib | all versions | 5.0.11com.liferay:com.liferay.flags.taglib:5.0.11 |
| ☕Maven | com.liferay.portal:release.dxp.bom | ≥ 7.0.0&&< 7.0.10.fp96 | 7.0.10.fp96com.liferay.portal:release.dxp.bom:7.0.10.fp96 |
| ☕Maven | com.liferay.portal:release.dxp.bom | ≥ 7.1.0&&< 7.1.10.fp20 | 7.1.10.fp20com.liferay.portal:release.dxp.bom:7.1.10.fp20 |
| ☕Maven | com.liferay.portal:release.dxp.bom | ≥ 7.2.0&&< 7.2.10.fp5 | 7.2.10.fp5com.liferay.portal:release.dxp.bom:7.2.10.fp5 |
Affected Products
digital experience platformliferayliferay portalliferayDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.liferay:com.liferay.flags.taglib, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update com.liferay:com.liferay.flags.taglib to 5.0.11 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-33320 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is CVE-2021-33320 in your dependencies?
Find it across Maven, including transitive dependencies.