---
id: CVE-2021-38269
title: >-
  Cross-site scripting (XSS) vulnerability in the Gogo Shell module in Liferay
  Portal 7.1.0 through 7.3.6 and 7.4.0, and Liferay DXP 7.1 before fix pack 23,
  7.2 before fix pack 13, and 7.3 before fix pack 2 allows remote attackers to
  injec…
summary: >-
  Cross-site scripting (XSS) vulnerability in the Gogo Shell module in Liferay
  Portal 7.1.0 through 7.3.6 and 7.4.0, and Liferay DXP 7.1 before fix pack 23,
  7.2 before fix pack 13, and 7.3 before fix pack 2 allows remote attackers to
  injec…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
vendor: liferay
product: liferay_portal
affected:
  - 'liferay_portal >= 7.1.0, <= 7.3.6'
  - liferay_portal = 7.4.0
  - digital_experience_platform = 7.1
  - digital_experience_platform = 7.2
  - digital_experience_platform = 7.3
published: '2022-03-03'
updated: '2026-07-05'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2021-38269'
references:
  - url: >-
      https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2021-38269-stored-xss-with-gogo-shell-output
    label: cve@mitre.org
  - url: 'http://liferay.com'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2021-38269-stored-xss-with-gogo-shell-output
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00585
epssPercentile: 0.45639
ingestedAt: '2026-07-06T17:03:23.929Z'
---

## Overview

Cross-site scripting (XSS) vulnerability in the Gogo Shell module in Liferay Portal 7.1.0 through 7.3.6 and 7.4.0, and Liferay DXP 7.1 before fix pack 23, 7.2 before fix pack 13, and 7.3 before fix pack 2 allows remote attackers to inject arbitrary web script or HTML via the output of a Gogo Shell command.

## Affected

- `liferay_portal >= 7.1.0, <= 7.3.6`
- `liferay_portal = 7.4.0`
- `digital_experience_platform = 7.1`
- `digital_experience_platform = 7.2`
- `digital_experience_platform = 7.3`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
