# CVE-2023-38582: Socomec MOD3GP-SY-120K Cross-site Scripting

> An authenticated attacker can inject persistent XSS payloads into the mail field, executing arbitrary JavaScript when other users access the page.

- **Severity:** Medium 6.3 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`)
- **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:** 18 Sep 2023
- **Updated:** 18 Jun 2025
- **Also known as:** GHSA-vhx8-cppg-v89v

## What is CVE-2023-38582?

CVE-2023-38582 is a medium-severity cross-site scripting vulnerability in Socomec MODULYS GP (MOD3GP-SY-120K), published on 18 Sep 2023. 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

Persistent cross-site scripting (XSS) in the web application of MOD3GP-SY-120K allows an authenticated remote attacker to introduce arbitrary JavaScript by injecting an XSS payload into the field MAIL_RCV. When a legitimate user attempts to access to the vulnerable page of the web application, the XSS payload will be executed.

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

## Which versions are affected by CVE-2023-38582?

It affects 1 product.


Products: Socomec Modulys Gp Firmware.

## How do I fix CVE-2023-38582?

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

## Is CVE-2023-38582 being exploited?

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

## Other vulnerabilities in Socomec MODULYS GP (MOD3GP-SY-120K)

- [CVE-2023-41084](https://insights.sbomify.com/CVE-2023-41084/): Socomec MOD3GP-SY-120K Reliance on Cookies without Validation and Integrity Checking (critical 10.0)
- [CVE-2023-39446](https://insights.sbomify.com/CVE-2023-39446/): Socomec MOD3GP-SY-120K Cross-Site Request Forgery (high 8.9)
- [CVE-2023-40221](https://insights.sbomify.com/CVE-2023-40221/): Socomec MOD3GP-SY-120K Code Injection (high 8.8)
- [CVE-2023-39452](https://insights.sbomify.com/CVE-2023-39452/): Socomec MOD3GP-SY-120K Plaintext Storage of a Password (high 7.5)
- [CVE-2023-41965](https://insights.sbomify.com/CVE-2023-41965/): Socomec MOD3GP-SY-120K Insecure Storage of Sensitive Information (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-38582 and fix it if it is affected.

What it is: CVE-2023-38582 is a medium-severity cross-site scripting vulnerability in Socomec MODULYS GP (MOD3GP-SY-120K), published on 18 Sep 2023. 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-2023-38582 in the wild and no public exploit code.

Affected product: Socomec MODULYS GP (MOD3GP-SY-120K). 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-2023-38582/ (Markdown: https://insights.sbomify.com/CVE-2023-38582/index.md)
```

## Sources

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

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