VYPR
Moderate severityNVD Advisory· Published Apr 30, 2014· Updated May 6, 2026

CVE-2014-2260

CVE-2014-2260

Description

Cross-site scripting (XSS) vulnerability in plugins/main/content/js/ajenti.coffee in Eugene Pankov Ajenti 1.2.13 allows remote authenticated users to inject arbitrary web script or HTML via the command field in the Cron functionality.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
ajentiPyPI
< 1.2.151.2.15

Affected products

1

Patches

2
3270fd1d7839

[ui] fixes

https://github.com/Eugeny/ajentiEugene PankovJan 15, 2014via ghsa
3 files changed · +9 4
  • ajenti/plugins/main/content/js/ajenti.coffee+6 2 modified
    @@ -322,8 +322,12 @@ class window.Control
             
             
         s: (value) ->
    -        # TODO SANITIZE!
    -        value
    +        ('' + value) /* Forces the conversion to string. */
    +        .replace(/&/g, '&amp;') /* This MUST be the 1st replacement. */
    +            .replace(/'/g, '&apos;') /* The 4 other predefined entities, required. */
    +            .replace(/"/g, '&quot;')
    +            .replace(/</g, '&lt;')
    +            .replace(/>/g, '&gt;')
     
         createDom: () ->
             ""
    
  • ajenti/plugins/main/content/js/controls.binding.coffee+2 1 modified
    @@ -6,4 +6,5 @@ class window.Controls.bind__template extends window.Control
         setupDom: (dom) ->
             super(dom)
             if @children.length > 0
    -            @dom = @children[0].dom
    \ No newline at end of file
    +            @dom = @children[0].dom
    +            @properties = @children[0].properties
    \ No newline at end of file
    
  • ajenti/plugins/main/content/js/controls.inputs.coffee+1 1 modified
    @@ -231,7 +231,7 @@ class window.Controls.fileupload extends window.Control
             super(dom)        
             @progress = new window.Controls.progressbar(@ui, {}, [])
             $(@dom).find('.pb').append($(@progress.dom))
    -        @input = @dom.find('input')[0]
    +        @input = $(@dom).find('input')[0]
             @input.addEventListener 'change', (e) =>
                 file = @input.files[0]
                 xhr = new XMLHttpRequest()
    
3270fd1d7839

[ui] fixes

https://github.com/ajenti/ajentiEugene PankovJan 15, 2014via ghsa
3 files changed · +9 4
  • ajenti/plugins/main/content/js/ajenti.coffee+6 2 modified
    @@ -322,8 +322,12 @@ class window.Control
             
             
         s: (value) ->
    -        # TODO SANITIZE!
    -        value
    +        ('' + value) /* Forces the conversion to string. */
    +        .replace(/&/g, '&amp;') /* This MUST be the 1st replacement. */
    +            .replace(/'/g, '&apos;') /* The 4 other predefined entities, required. */
    +            .replace(/"/g, '&quot;')
    +            .replace(/</g, '&lt;')
    +            .replace(/>/g, '&gt;')
     
         createDom: () ->
             ""
    
  • ajenti/plugins/main/content/js/controls.binding.coffee+2 1 modified
    @@ -6,4 +6,5 @@ class window.Controls.bind__template extends window.Control
         setupDom: (dom) ->
             super(dom)
             if @children.length > 0
    -            @dom = @children[0].dom
    \ No newline at end of file
    +            @dom = @children[0].dom
    +            @properties = @children[0].properties
    \ No newline at end of file
    
  • ajenti/plugins/main/content/js/controls.inputs.coffee+1 1 modified
    @@ -231,7 +231,7 @@ class window.Controls.fileupload extends window.Control
             super(dom)        
             @progress = new window.Controls.progressbar(@ui, {}, [])
             $(@dom).find('.pb').append($(@progress.dom))
    -        @input = @dom.find('input')[0]
    +        @input = $(@dom).find('input')[0]
             @input.addEventListener 'change', (e) =>
                 file = @input.files[0]
                 xhr = new XMLHttpRequest()
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

11

News mentions

0

No linked articles in our index yet.