# CVE-2018-1000665: Improper Neutralization of Input During Web Page Generation in Dojo Dojo Objective Harness

> Cross-site scripting in Dojo DOH allows attackers to execute scripts in victim browsers, potentially stealing cookies or delivering malware.

- **Severity:** Medium 6.1 (`CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/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:** Yes
- **Published:** 6 Sep 2018
- **Updated:** 17 Sep 2024
- **Also known as:** DEBIAN-CVE-2018-1000665, GHSA-vmq9-cm7m-4p8p, UBUNTU-CVE-2018-1000665

## What is CVE-2018-1000665?

CVE-2018-1000665 is a medium-severity cross-site scripting vulnerability in n/a, published on 6 Sep 2018. 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

Dojo Dojo Objective Harness (DOH) version prior to version 1.14 contains a Cross Site Scripting (XSS) vulnerability in unit.html and testsDOH/_base/loader/i18n-exhaustive/i18n-test/unit.html and testsDOH/_base/i18nExhaustive.js in the DOH that can result in Victim attacked through their browser - deliver malware, steal HTTP cookies, bypass CORS trust. This attack appear to be exploitable via Victims are typically lured to a web site under the attacker's control; the XSS vulnerability on the target domain is silently exploited without the victim's knowledge. This vulnerability appears to have been fixed in 1.14.

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

## Which versions are affected by CVE-2018-1000665?

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.dojotoolkit:dojo` | Maven | All versions | 1.14 |
| `org.dojotoolkit:dojo` | Maven | All versions | 1.14 |

Products: Dojotoolkit Dojo.

## How do I fix CVE-2018-1000665?

Upgrade org.dojotoolkit:dojo to 1.14 or later.

## Is CVE-2018-1000665 being exploited?

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

## Other vulnerabilities in n/a

- [CVE-2010-2272](https://insights.sbomify.com/CVE-2010-2272/): Other in n/a (critical 10.0)
- [CVE-2010-2276](https://insights.sbomify.com/CVE-2010-2276/): Misconfiguration in n/a (critical 10.0)
- [CVE-2018-6561](https://insights.sbomify.com/CVE-2018-6561/): dijit editor cross-site scripting vulnerability (medium 6.1)
- [CVE-2015-5654](https://insights.sbomify.com/CVE-2015-5654/): Cross-Site Scripting in dojo (medium 4.3)
- [CVE-2010-2273](https://insights.sbomify.com/CVE-2010-2273/): Cross-Site Scripting in dojo (medium 4.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2018-1000665 and fix it if it is affected.

What it is: CVE-2018-1000665 is a medium-severity cross-site scripting vulnerability in n/a, published on 6 Sep 2018. 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-2018-1000665 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.dojotoolkit:dojo (Maven): affected all versions; fixed in 1.14
- org.dojotoolkit:dojo (Maven): affected all versions; fixed in 1.14

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

## Sources

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

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