Skip to content

Migrate away from doT.js templating library over CSP security failure #728

Closed
@mappu

Description

@mappu

Hi,

jquery-QueryBuilder (jqqb) is a great and featureful time-saving library. Thank you for all your work.

We'd like to implement CSP security policies on our web app, to reduce possibility of JS-based attacks (XSS, etc).

jqqb uses the doT.js library for templating HTML.

The doT.js library is incompatible with CSP security policies (see olado/doT#276 ) and I don't think it's fixable with their current design.

  • How heavy is jqqb's use of doT?
  • Is it possible to migrate to something that does not use eval or equivalent?
  • Is it possible to "precompile" jqqb's use of doT so that eval is not needed at runtime?

Thank you,

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