Clarification: 1.3.4 “Draw graphics”

Open
#3,234 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
xml

Research direction

Read the raw Markdown requirements in the 5.0 branch, locate requirement 1.3.4, and review the issue's proposed wording changes. Compare the surrounding ASVS requirements for terminology and scope. Done means the requirement clearly defines safe SVG content and the expected validation or sanitization guidance, with the discussion resolved in the issue.

Written by the indexing model from the issue text.

Description

4a) Waiting for another V1 (prev V5)

1.3.4 Verify that user‑supplied Scalable Vector Graphics (SVG) scriptable content is
validated or sanitized to contain only tags and attributes (such as draw
graphics) that are safe for the application, e.g., do not contain scripts and
foreignObject.

  • “Draw graphics” is not a technical term. A clearer phrase would be something like “static visual rendering elements such as <rect>, <circle>, <line>, <path>.”
  • The requirement doesn’t explain when validation should happen, whether at upload time, render time, or both.
  • It doesn’t mention any recommended tools or libraries. I think It should also recommend using established, actively maintained SVG sanitization libraries with a strong security track record.
  • "Validated or sanitize" this confuse the developer, It should emphasize strict allowlisting of SVG tags and attributes, never depend on general-purpose sanitization for SVG.
Dominant language
HTML
Stars
3.9k
Forks
865
Avg merge
3d 4h
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OWASP/ASVS

All issues in OWASP/ASVS

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.