Skip to content

[css-forms-1] control-value() security and handling #11860

Open

Description

@tabatkins

control-value() is morally equivalent to attr(), just with some special handling of the values since we know something about types. So, it should work identically to attr():

  • it's an "arbitrary substitution function"
  • it has the same tainting behavior as attr() (and so can't be used in a URL)

Activity

  1. lukewarlow commented on Mar 6, 2025

    @lukewarlow
    Member

    We should probably also refuse to expose password input values?

  2. tabatkins commented on Mar 6, 2025

    @tabatkins
    MemberAuthor

    Password input values aren't security-conscious in this context; the page already has access to them. (And they might even be visible, depending on your browser, if you click the "reveal password" UI.)

    It would be bad for them to be exfiltrateable, but that's what attr() tainting solves.

  3. added a commit that references this issue on Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions