{"action":"created","issue":{"url":"https://api.github.com/repos/savon-noir/python-libnessus/issues/10","repository_url":"https://api.github.com/repos/savon-noir/python-libnessus","labels_url":"https://api.github.com/repos/savon-noir/python-libnessus/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/savon-noir/python-libnessus/issues/10/comments","events_url":"https://api.github.com/repos/savon-noir/python-libnessus/issues/10/events","html_url":"https://github.com/savon-noir/python-libnessus/issues/10","id":132408810,"number":10,"title":"CVE not parsed","user":{"login":"toshiro92","id":17139715,"avatar_url":"https://avatars.githubusercontent.com/u/17139715?v=3","gravatar_id":"","url":"https://api.github.com/users/toshiro92","html_url":"https://github.com/toshiro92","followers_url":"https://api.github.com/users/toshiro92/followers","following_url":"https://api.github.com/users/toshiro92/following{/other_user}","gists_url":"https://api.github.com/users/toshiro92/gists{/gist_id}","starred_url":"https://api.github.com/users/toshiro92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshiro92/subscriptions","organizations_url":"https://api.github.com/users/toshiro92/orgs","repos_url":"https://api.github.com/users/toshiro92/repos","events_url":"https://api.github.com/users/toshiro92/events{/privacy}","received_events_url":"https://api.github.com/users/toshiro92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-09T12:33:41Z","updated_at":"2016-02-09T13:20:09Z","closed_at":null,"body":"Hello !\r\n\r\nI'm writing this new issue as i tried to extract the CVE from Nessus XML output (Version 2). Everything work except for the CVE, which systematicaly returns 'None', but not for another elements.\r\n\r\nThere is the code i wrote for testing purposes:\r\n\r\n```\r\nfrom libnessus.parser import NessusParser\r\n\r\ndef nessus_parser(reportfile):\r\n \r\n      report = NessusParser.parse_fromfile(reportfile)\r\n      for hosts in report.hosts:\r\n          for vuln in hosts.get_report_items:\r\n \r\n              print('CVE: {}'.format(vuln.get_vuln_risk.get('cve','None'))) #Returns None\r\n              print('CVSS: {}'.format(vuln.get_vuln_risk.get('cvss_vector','None'))) #Worked\r\n```"},"comment":{"url":"https://api.github.com/repos/savon-noir/python-libnessus/issues/comments/181860308","html_url":"https://github.com/savon-noir/python-libnessus/issues/10#issuecomment-181860308","issue_url":"https://api.github.com/repos/savon-noir/python-libnessus/issues/10","id":181860308,"user":{"login":"makefu","id":115218,"avatar_url":"https://avatars.githubusercontent.com/u/115218?v=3","gravatar_id":"","url":"https://api.github.com/users/makefu","html_url":"https://github.com/makefu","followers_url":"https://api.github.com/users/makefu/followers","following_url":"https://api.github.com/users/makefu/following{/other_user}","gists_url":"https://api.github.com/users/makefu/gists{/gist_id}","starred_url":"https://api.github.com/users/makefu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makefu/subscriptions","organizations_url":"https://api.github.com/users/makefu/orgs","repos_url":"https://api.github.com/users/makefu/repos","events_url":"https://api.github.com/users/makefu/events{/privacy}","received_events_url":"https://api.github.com/users/makefu/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T13:20:09Z","updated_at":"2016-02-09T13:20:09Z","body":"we found the issue, it is `vuln.get_vuln_info.get('cve',None)` instead of `get_vuln_risk`\r\ncheers"}}