Should <a> element navigate to javascript:-URLs when clicking ?
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 56
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
In HTML and SVG, anchor elements can navigate to javascript:jscode() to execute JavaScript code within the context of the current document.
As this is a popular XSS gadget, should we drop support for navigating to javascript: URLs in MathML anchor elements to improve security?
See https://groups.google.com/a/chromium.org/g/blink-dev/c/kmtYoVZjtZE/m/Fx-bMNyREAAJ
cc @fred-wang @lukewarlow
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the issue and the linked blink-dev discussion to understand the security concern and existing browser behavior for MathML anchor elements. A decision on whether to drop javascript: URL navigation, with the resulting specification work identified, would define what done looks like.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- security, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100