Skip to content

implement escaping in SPARQL #3

@vsimko

Description

@vsimko

The current implementation does not provide automated escaping of SPARQL inputs.

Example:

const result = await SELECT`
  select * where {
    ?s rdfs:label ?x.
    FILTER( ?x = "${str}" )
  }`

The problem here is that if str variable comes from the user and not sanitized it could lead to SPARQL injection.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions