Skip to content

Feature request: formatter that uses glue_safe() instead of glue() #112

@terashim

Description

@terashim

Though glue() is a powerful tool to format text messages, it can cause vulnerabilities when you use it with untrusted data. For example, if a Shiny app uses formatter_glue() to log its user input parameter, an attacker can execute arbitrary R code on the server by submitting malicious data.

glue_safe() is designed to handle untrusted data safely in such a case. It does not execute R code but substitutes variable names by their values.

It would be great if we could choose a formatter that uses glue_safe() instead of glue() to avoid security problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions