# CVE-2009-0026: Apache Jackrabbit contains Cross-site Scripting

> Remote attackers can inject arbitrary web script or HTML via the q parameter in search.jsp or swr.jsp, potentially compromising user sessions.

- **Severity:** Medium 4.3 (`AV:N/AC:M/Au:N/C:N/I:P/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:** Yes
- **Published:** 21 Jan 2009
- **Updated:** 7 Aug 2024
- **Also known as:** GHSA-6fxv-38xc-h866

## What is CVE-2009-0026?

CVE-2009-0026 is a medium-severity cross-site scripting vulnerability in n/a, published on 21 Jan 2009. 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

Multiple cross-site scripting (XSS) vulnerabilities in Apache Jackrabbit before 1.5.2 allow remote attackers to inject arbitrary web script or HTML via the q parameter to (1) search.jsp or (2) swr.jsp.

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

## Which versions are affected by CVE-2009-0026?

2 open source packages ship an affected version, including org.apache.jackrabbit:jackrabbit. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.apache.jackrabbit:jackrabbit` | Maven | All versions | 1.5.2 |
| `org.apache.jackrabbit:jackrabbit` | Maven | All versions | 1.5.2 |

Products: Apache Jackrabbit.

## How do I fix CVE-2009-0026?

Upgrade org.apache.jackrabbit:jackrabbit to 1.5.2 or later.

## Is CVE-2009-0026 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-0026 exists.

Public exploit code:

- Apache JackRabbit 1.4/1.5 Content Repository (JCR) - 'search.jsp?q' Cross-Site Scripting (exploitdb)
- Apache JackRabbit 1.4/1.5 Content Repository (JCR) - 'swr.jsp?q' Cross-Site Scripting (exploitdb)

## Other vulnerabilities in n/a

- [CVE-2023-37895](https://insights.sbomify.com/CVE-2023-37895/): Apache Jackrabbit RMI access can lead to RCE (critical 9.8)
- [CVE-2026-92414](https://insights.sbomify.com/CVE-2026-92414/): Apache Jackrabbit: Pre-auth hijack of cached sessions via derivable WebDAV lock tokens (critical 9.3)
- [CVE-2025-53689](https://insights.sbomify.com/CVE-2025-53689/): Apache Jackrabbit: XXE vulnerability in jackrabbit-spi-commons (high 8.8)
- [CVE-2016-6801](https://insights.sbomify.com/CVE-2016-6801/): Apache Jackrabbit Authentication Hijacking Vulnerability (high 8.8)
- [CVE-2026-92415](https://insights.sbomify.com/CVE-2026-92415/): Apache Jackrabbit: DavEx client runs Class.forName + (String)-constructor on server-controlled error bodies (medium 6.9)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2009-0026 and fix it if it is affected.

What it is: CVE-2009-0026 is a medium-severity cross-site scripting vulnerability in n/a, published on 21 Jan 2009. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-0026 exists.

Affected packages and fixed versions:
- org.apache.jackrabbit:jackrabbit (Maven): affected all versions; fixed in 1.5.2
- org.apache.jackrabbit:jackrabbit (Maven): affected all versions; fixed in 1.5.2

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-2009-0026/ (Markdown: https://insights.sbomify.com/CVE-2009-0026/index.md)
```

## Sources

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

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