# CVE-2022-4455: sproctor php-calendar index.php cross site scripting

> Remote attackers can execute arbitrary scripts via cross-site scripting in the index.php file of sproctor php-calendar.

- **Severity:** Medium 5.1 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 13 Dec 2022
- **Updated:** 15 Dec 2025
- **Also known as:** GHSA-3957-4jhv-xcc7, MINI-67cj-wx3w-w33j, MINI-cvrv-4f8p-96g5, MINI-g3pp-5vpc-mh77, MINI-r4rr-mw6w-fhw8, MINI-xfwp-76r9-72mc

## What is CVE-2022-4455?

CVE-2022-4455 is a medium-severity cross-site scripting vulnerability in sproctor php-calendar, published on 13 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

A vulnerability was identified in sproctor php-calendar up to 2.0.13. This impacts an unknown function of the file index.php. Such manipulation of the argument $_SERVER['PHP_SELF'] leads to cross site scripting. The attack may be launched remotely. The name of the patch is a2941109b42201c19733127ced763e270a357809. It is advisable to implement a patch to correct this issue.

Weakness: CWE-94 (Improper Control of Generation of Code), CWE-79 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2022-4455?

It affects 1 product.


Products: Php-Calendar Php-Calendar.

## How do I fix CVE-2022-4455?

Apply the vendor's patch.

## Is CVE-2022-4455 being exploited?

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

## Other vulnerabilities in sproctor php-calendar

- [CVE-2009-3702](https://insights.sbomify.com/CVE-2009-3702/): Path traversal in n/a (high 7.5)
- [CVE-2005-1397](https://insights.sbomify.com/CVE-2005-1397/): SQL injection in n/a (high 7.5)
- [CVE-2004-1423](https://insights.sbomify.com/CVE-2004-1423/): Code injection in n/a (high 7.5)
- [CVE-2017-6485](https://insights.sbomify.com/CVE-2017-6485/): Cross-site scripting in n/a (medium 6.1)
- [CVE-2010-2041](https://insights.sbomify.com/CVE-2010-2041/): Cross-site scripting in n/a (medium 4.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-4455 and fix it if it is affected.

What it is: CVE-2022-4455 is a medium-severity cross-site scripting vulnerability in sproctor php-calendar, published on 13 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2022-4455 in the wild and no public exploit code.

Affected product: sproctor php-calendar. 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-2022-4455/ (Markdown: https://insights.sbomify.com/CVE-2022-4455/index.md)
```

## Sources

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

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