# CVE-2021-33691: Cross-site scripting in SAP NetWeaver Development Infrastructure (Notification Service)

> Attackers can inject scripts into the SAP NetWeaver Notification Service to steal session data and sensitive information from victims.

- **Severity:** Medium 6.9 (`CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 15 Sep 2021
- **Updated:** 3 Aug 2024
- **Also known as:** GHSA-h5vp-8vfv-4cgp

## What is CVE-2021-33691?

CVE-2021-33691 is a medium-severity cross-site scripting vulnerability in SAP NetWeaver Development Infrastructure (Notification Service), published on 15 Sep 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

NWDI Notification Service versions - 7.31, 7.40, 7.50, does not sufficiently encode user-controlled inputs, resulting in Cross-Site Scripting (XSS) vulnerability.SAP NetWeaver Development Infrastructure Notification Service allows a threat actor to send crafted scripts to a victim. If the victim has an active session when the crafted script gets executed, the threat actor could compromise information in victims session, and gain access to some sensitive information also.

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2021-33691?

It affects 1 product.


Products: Sap Netweaver Development Infrastructure.

## How do I fix CVE-2021-33691?

No fix has been published for CVE-2021-33691 yet. Limit exposure of the affected software until one is available.

## Is CVE-2021-33691 being exploited?

There is no known exploitation of CVE-2021-33691 in the wild and no public exploit code.

## Other vulnerabilities in SAP NetWeaver Development Infrastructure (Notification Service)

- [CVE-2021-33690](https://insights.sbomify.com/CVE-2021-33690/): Server-side request forgery in SAP NetWeaver Development Infrastructure (Component Build Service) (critical 9.9)
- [CVE-2013-6820](https://insights.sbomify.com/CVE-2013-6820/): File upload in n/a (critical 9.3)
- [CVE-2022-29618](https://insights.sbomify.com/CVE-2022-29618/): Cross-site scripting in SAP NetWeaver Development Infrastructure (Design Time Repository) (medium 6.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-33691 and fix it if it is affected.

What it is: CVE-2021-33691 is a medium-severity cross-site scripting vulnerability in SAP NetWeaver Development Infrastructure (Notification Service), published on 15 Sep 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2021-33691 in the wild and no public exploit code.

Affected product: SAP NetWeaver Development Infrastructure (Notification Service). No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2021-33691/ (Markdown: https://insights.sbomify.com/CVE-2021-33691/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2021-33691
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2021-33691
- OSV: https://osv.dev/vulnerability/CVE-2021-33691

---
From sbomify Insights: https://insights.sbomify.com/CVE-2021-33691/
Summaries are generated and may contain mistakes; the official description above is the record.
